:root {
  --nc-petroleum: #17516f;
  --nc-petroleum-dark: #183b57;
  --nc-turquoise: #007d78;
  --nc-turquoise-bright: #05c4bb;
  --nc-maize: #fec43d;
  --nc-coral: #ec7056;
  --nc-violet: #6857a8;
  --nc-mint: #51c8a9;
  --nc-charcoal: #243744;
  --nc-muted: #526674;
  --nc-ivory: #fffaf0;
  --nc-border: #d6e4e4;
  --nc-surface: #ffffff;
  --nc-danger: #a82d2d;
  --nc-focus: #007d78;
  --nc-radius: 1rem;
  --nc-shadow: 0 18px 50px rgba(39, 63, 69, 0.11);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--nc-charcoal);
  background: var(--nc-surface);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--nc-petroleum-dark);
  border-radius: 0.5rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--nc-border);
  backdrop-filter: blur(14px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--nc-turquoise-bright), var(--nc-maize) 52%, var(--nc-coral));
  content: "";
  pointer-events: none;
}

.navbar {
  min-height: 76px;
}

.navbar-brand img {
  display: block;
  width: 166px;
  height: auto;
}

.navbar-brand:hover img {
  filter: drop-shadow(0 4px 10px rgba(20, 143, 135, 0.2));
}

.nav-link {
  color: #40535c;
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--nc-petroleum);
}

.btn-brand {
  --bs-btn-color: #26343f;
  --bs-btn-bg: var(--nc-maize);
  --bs-btn-border-color: #eaa42a;
  --bs-btn-hover-color: #26343f;
  --bs-btn-hover-bg: #ffb728;
  --bs-btn-hover-border-color: #d78d16;
  --bs-btn-focus-shadow-rgb: 255, 194, 71;
  --bs-btn-active-color: #26343f;
  --bs-btn-active-bg: #f4aa20;
  --bs-btn-active-border-color: #d78d16;
  border-radius: 0.7rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(184, 119, 18, 0.18);
}

.btn-outline-brand {
  color: var(--nc-petroleum);
  border-color: #72aeb7;
  border-radius: 0.7rem;
  font-weight: 800;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  color: #fff;
  background: var(--nc-petroleum);
  border-color: var(--nc-petroleum);
}

.btn-brand:hover,
.btn-outline-brand:hover {
  transform: translateY(-1px);
}

.btn-brand:focus-visible,
.btn-outline-brand:focus-visible,
.locate-button:focus-visible {
  outline: 3px solid var(--nc-focus);
  outline-offset: 2px;
}

.btn-ghost {
  color: var(--nc-petroleum);
  background: transparent;
  font-weight: 800;
}

.btn i,
.share-button i,
.emergency-link i {
  margin-right: 0.28rem;
}

.noscript-message {
  padding: 0.85rem 1rem;
  color: #fff;
  background: var(--nc-danger);
  text-align: center;
  font-weight: 800;
}

.member-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.member-name {
  max-width: 12rem;
  overflow: hidden;
  color: var(--nc-petroleum-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emergency-strip {
  padding: 0.6rem 0;
  color: #fff;
  background: var(--nc-petroleum-dark);
  font-size: 0.9rem;
}

.emergency-link {
  color: var(--nc-maize);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.map-section {
  background:
    url('/assets/images/civic-network-pattern.svg') center top / min(1400px, 100%) auto no-repeat,
    radial-gradient(circle at 95% 3%, rgba(255, 194, 71, .24), transparent 22rem),
    linear-gradient(120deg, #eafaf8 0%, #fffbf2 55%, #f8f2ff 100%);
}

.map-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.35rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(8, 184, 174, .32);
}

.eyebrow {
  color: var(--nc-petroleum);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toolbar-controls {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}

.toolbar-controls > div {
  min-width: 180px;
}

.form-label {
  margin-bottom: 0.3rem;
  color: #42565f;
  font-size: 0.88rem;
  font-weight: 800;
}

.form-control,
.form-select {
  min-height: 44px;
  border-color: #b8c9cf;
  border-radius: 0.7rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--nc-turquoise);
  box-shadow: 0 0 0 0.22rem rgba(8, 184, 174, 0.2);
}

.locate-button {
  min-height: 44px;
  color: var(--nc-petroleum);
  border: 1px solid var(--nc-border);
  border-radius: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-carousel {
  padding-top: 0.65rem;
  padding-bottom: 0.85rem;
  background: linear-gradient(110deg, #fff9e9, #effcf9);
  border-top: 1px solid #e7e0ce;
}

.category-carousel-heading,
.category-carousel-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-carousel-heading {
  justify-content: space-between;
  margin-bottom: 0.35rem;
  color: var(--nc-petroleum-dark);
  font-size: 0.87rem;
  font-weight: 850;
}

.category-carousel-heading small {
  color: var(--nc-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.category-carousel-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--nc-petroleum-dark);
  background: #fff;
  border: 1px solid var(--nc-border);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(22, 78, 99, 0.1);
}

.category-carousel-arrow:not(:disabled):hover,
.category-carousel-arrow:not(:disabled):focus-visible {
  color: #fff;
  background: var(--nc-petroleum);
  border-color: var(--nc-petroleum);
}

.category-carousel-arrow:disabled { opacity: .4; cursor: not-allowed; }
.category-carousel.is-static .category-carousel-arrow { display: none; }

.category-scroller {
  display: flex;
  align-items: stretch;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  padding-top: 0.3rem;
  padding-bottom: 0.45rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.map-section .category-scroller {
  position: relative;
  z-index: 1;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  color: #30464f;
  background: #fff;
  border: 1px solid var(--nc-border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  max-width: min(15rem, 70vw);
  scroll-snap-align: start;
}

.category-pill:hover,
.category-pill:focus-visible,
.category-pill.active {
  color: #fff;
  background: var(--nc-petroleum);
  border-color: var(--nc-petroleum);
}

.category-pill[data-category]:not([data-category=""]) {
  color: #172d36;
  background: color-mix(in srgb, var(--category-color) 15%, white);
  border-color: color-mix(in srgb, var(--category-color) 43%, white);
}

.category-pill[data-category]:not([data-category=""]):hover,
.category-pill[data-category]:not([data-category=""]):focus-visible,
.category-pill[data-category]:not([data-category=""]):active,
.category-pill[data-category]:not([data-category=""]).active {
  color: #10242b;
  background: color-mix(in srgb, var(--category-color) 30%, white);
  border-color: var(--category-color);
  box-shadow: inset 0 0 0 1px var(--category-color);
}

.category-dot {
  width: 0.72rem;
  height: 0.72rem;
  background: var(--dot-color, var(--nc-turquoise));
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(31, 41, 51, 0.15);
}

.category-icon {
  color: var(--category-color, currentColor);
}

.category-pill.active .category-icon,
.category-pill:hover .category-icon,
.category-pill:focus .category-icon {
  color: var(--nc-maize);
}

.category-pill[data-category]:not([data-category=""]) .category-icon,
.category-pill[data-category]:not([data-category=""]).active .category-icon,
.category-pill[data-category]:not([data-category=""]):hover .category-icon,
.category-pill[data-category]:not([data-category=""]):focus .category-icon {
  color: var(--category-color);
}

.map-workspace {
  display: grid;
  grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
  min-height: 610px;
  height: calc(100vh - 285px);
  border-top: 1px solid #cbdedb;
  box-shadow: 0 -7px 30px rgba(41, 72, 77, .06);
}

.report-sidebar {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--nc-border);
}

.sidebar-heading {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--nc-border);
  backdrop-filter: blur(12px);
}

.sync-status {
  margin-top: 0.18rem;
  color: var(--nc-muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.report-list-notice {
  max-width: 30ch;
  margin: .35rem 0 0;
  color: #52686b;
  font-size: .69rem;
  line-height: 1.35;
}

.sync-ready i {
  color: #0f766e;
}

.sync-loading i {
  color: var(--nc-petroleum);
}

.sync-offline {
  color: #855f08;
}

.report-list {
  padding: 0.9rem;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 2.3rem 1rem;
  text-align: center;
  border: 1px dashed #b8c9cf;
  border-radius: var(--nc-radius);
  background: linear-gradient(140deg, #fffdf7, #f2f7f4);
}

.empty-state p {
  max-width: 26ch;
  color: var(--nc-muted);
}

.empty-state-mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 0.9rem;
  color: var(--nc-petroleum);
  background: #fff0c5;
  border-radius: 50%;
  font-size: 1.55rem;
}

.report-list[aria-busy="true"] {
  opacity: 0.68;
}

.report-card {
  padding: 0.95rem;
  background: #fff;
  border: 1px solid var(--nc-border);
  border-left: 4px solid var(--category-color, var(--nc-mint));
  border-radius: 0.9rem;
  box-shadow: 0 7px 20px rgba(22, 78, 99, 0.05);
}

.report-card + .report-card {
  margin-top: 0.75rem;
}

.report-card:hover,
.report-card:focus-within {
  border-color: #65bcb8;
  box-shadow: 0 10px 26px rgba(8, 120, 133, 0.13);
}

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.report-card-category,
.report-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.75rem;
  font-weight: 900;
}

.report-card-category {
  color: var(--category-color, var(--nc-petroleum));
}

.report-card-status {
  padding: 0.18rem 0.48rem;
  color: #24535d;
  background: #e6f1f3;
  border-radius: 999px;
  white-space: nowrap;
}

.report-card-status.status-resolved {
  color: #166534;
  background: #dcfce7;
}

.report-card-status.status-resolution_reported {
  color: #7c4d05;
  background: #fff1c2;
}

.report-card-title {
  margin-bottom: 0.38rem;
}

.report-card-title a {
  color: var(--nc-charcoal);
  text-decoration: none;
}

.report-card-title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.report-card {
  position: relative;
}

.report-card-place,
.report-card-meta {
  margin-bottom: 0;
  color: var(--nc-muted);
  font-size: 0.82rem;
}

.report-card-meta {
  margin-top: 0.28rem;
}

.report-card-location-hint {
  margin: .2rem 0 0;
  color: #7c4d05;
  font-size: .73rem;
  font-weight: 750;
}

.map-panel {
  position: relative;
  min-width: 0;
  min-height: 500px;
}

#civicMap {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: #dce9eb;
}

.nc-home-report-marker-icon { border: 0; background: transparent; overflow: visible; }
.nc-home-report-point:focus-visible {
  outline: 4px solid var(--nc-maize);
  outline-offset: 4px;
}

.nc-home-report-pin {
  --report-marker-color: #16877e;
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 12%;
  background: var(--report-marker-color);
  box-shadow: 0 4px 14px rgba(15, 43, 51, .4), 0 0 17px color-mix(in srgb, var(--report-marker-color) 72%, transparent);
  color: #fff;
  font-size: .94rem;
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
}
.nc-home-report-pin > i { transform: rotate(45deg); }
.nc-home-report-pin::before,
.nc-home-report-pin::after {
  position: absolute;
  inset: -8px;
  z-index: -1;
  border: 2px solid color-mix(in srgb, var(--report-marker-color) 72%, #fff);
  border-radius: 50%;
  content: "";
  animation: nc-home-report-pulse 2.2s ease-out infinite;
}
.nc-home-report-pin::after { animation-delay: 1.1s; }
.nc-home-report-pin.is-area { border-style: dashed; opacity: .9; }
.nc-home-report-pin.is-missing { width: 44px; height: 44px; }
.nc-home-report-point:hover .nc-home-report-pin,
.nc-home-report-point:focus .nc-home-report-pin { filter: brightness(1.08); box-shadow: 0 6px 20px rgba(15, 43, 51, .48), 0 0 25px var(--report-marker-color); }

@keyframes nc-home-report-pulse {
  0% { opacity: .82; transform: scale(.65); }
  75%, 100% { opacity: 0; transform: scale(1.58); }
}

@media (prefers-reduced-motion: reduce) {
  .nc-home-report-pin::before,
  .nc-home-report-pin::after { animation: none; opacity: .28; transform: scale(1); }
}

.leaflet-control-attribution {
  font-size: 0.72rem;
}

.map-tip {
  position: absolute;
  z-index: 500;
  top: 1rem;
  left: 50%;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: rgba(13, 53, 69, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(13, 53, 69, 0.2);
  font-size: 0.86rem;
  font-weight: 800;
  transform: translateX(-50%);
  pointer-events: none;
}

.floating-report-button {
  position: absolute;
  z-index: 500;
  right: 1rem;
  bottom: calc(2.7rem + env(safe-area-inset-bottom));
  min-height: 48px;
  padding-inline: 1rem;
  box-shadow: var(--nc-shadow);
}

.location-marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--nc-maize);
  border: 5px solid var(--nc-petroleum);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 4px 12px rgba(13, 53, 69, 0.35);
  transform: rotate(-45deg);
}

.selection-marker-shell {
  background: transparent;
  border: 0;
}

.map-popup {
  display: grid;
  gap: 0.24rem;
  min-width: 190px;
}

.map-popup-category {
  margin: 0;
  color: var(--nc-petroleum);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-popup span {
  color: var(--nc-muted);
}

.map-popup .map-popup-location-hint {
  color: #7c4d05;
  font-size: .74rem;
  font-weight: 800;
}

.map-popup a {
  margin-top: 0.35rem;
  color: var(--nc-petroleum);
  font-weight: 900;
}

.home-map-detail {
  position: fixed;
  z-index: 2100;
  inset: 0 0 0 auto;
  width: min(430px, 94vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--nc-charcoal);
  background: #fff;
  border: 0;
  border-left: 1px solid var(--nc-border);
  box-shadow: -18px 0 46px rgba(13, 53, 69, .22);
}

.home-map-detail[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  animation: nc-home-detail-in .2s ease-out;
}

.home-map-detail::backdrop {
  background: rgba(7, 34, 43, .48);
  backdrop-filter: blur(2px);
}

.home-map-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) 1.1rem 1rem;
  border-bottom: 1px solid var(--nc-border);
  background: #f8fbfa;
}

.home-map-detail-head > div { display: grid; gap: .12rem; }

.home-map-detail-head span {
  color: var(--nc-muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-map-detail-head button {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  color: var(--nc-petroleum);
  background: #fff;
  border: 1px solid var(--nc-border);
  border-radius: 50%;
}

.home-map-detail-head button:hover,
.home-map-detail-head button:focus-visible { color: #fff; background: var(--nc-petroleum); }

.home-map-detail-body {
  overflow-y: auto;
  padding: 1.15rem;
  overscroll-behavior: contain;
}

.home-map-detail-body .map-popup { gap: .65rem; min-width: 0; }
.home-map-detail-body .map-popup strong { font-size: 1.12rem; line-height: 1.35; }

.home-map-detail-body .map-popup a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--nc-petroleum);
  border-radius: .75rem;
  text-decoration: none;
}

@keyframes nc-home-detail-in {
  from { opacity: .75; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.location-marker::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--nc-petroleum-dark);
  border-radius: 50%;
}

.content-section {
  scroll-margin-top: 76px;
}

.bg-soft {
  background:
    radial-gradient(ellipse at 100% 3%, rgba(255, 194, 71, .2), transparent 22rem),
    var(--nc-ivory);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.section-copy {
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--nc-muted);
}

.data-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--nc-border);
  border-radius: var(--nc-radius);
  box-shadow: 0 10px 30px rgba(22, 78, 99, 0.06);
  border-top: 4px solid var(--nc-turquoise-bright);
}

.data-card::after {
  position: absolute;
  top: -1.7rem;
  right: -1.7rem;
  width: 4.5rem;
  height: 4.5rem;
  border: 2px dashed #f2b846;
  border-radius: 50%;
  content: "";
  opacity: .75;
  pointer-events: none;
}

#panorama .col-lg-4 .data-card { border-top-color: var(--nc-coral); }

.chart-empty-state {
  display: grid;
  place-content: center;
  min-height: 290px;
  padding: 2rem;
  text-align: center;
  border: 1px dashed #b8c9cf;
  border-radius: 0.8rem;
}

.chart-wrap {
  min-height: 240px;
}

.nc-chart {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.7rem;
  table-layout: fixed;
}

.nc-chart tbody th {
  width: 38%;
  padding: 0.3rem 0.9rem 0.3rem 0;
  color: #233c47;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.nc-chart td { vertical-align: middle; }
.nc-chart .nc-chart-track-cell { width: auto; }
.nc-chart .nc-chart-count { width: 4rem; padding-left: .65rem; color: var(--nc-petroleum-dark); font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 900; text-align: right; }
.nc-chart .nc-chart-track { display: block; height: 1.15rem; overflow: hidden; background: #edf3f4; border-radius: 999px; }
.nc-chart .nc-chart-bar { display: block; width: max(4px, calc(var(--size) * 100%)); height: 100%; background: var(--bar-color, var(--nc-turquoise)); border-radius: inherit; }
.nc-chart-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0 0 .7rem; color: var(--nc-muted); font-size: .88rem; }
.nc-chart-summary strong { color: var(--nc-petroleum-dark); font-size: 1.3rem; font-variant-numeric: tabular-nums; }

@media (max-width: 575px) {
  .category-carousel-arrow { flex-basis: 2rem; width: 2rem; height: 2rem; }
  .category-carousel-row { gap: .3rem; }
  .category-pill { min-height: 46px; font-size: .85rem; }
  .nc-chart { display: block; }
  .nc-chart tbody { display: grid; gap: .9rem; }
  .nc-chart tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label count" "bar bar"; gap: .35rem .75rem; padding-bottom: .8rem; border-bottom: 1px solid #e7eff0; }
  .nc-chart tbody th { grid-area: label; width: auto; padding: 0; }
  .nc-chart .nc-chart-track-cell { grid-area: bar; }
  .nc-chart .nc-chart-count { grid-area: count; width: auto; padding: 0; }
}

.plain-steps {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.plain-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.plain-steps li > span {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  color: var(--nc-petroleum-dark);
  background: #ffe7a1;
  border-radius: 50%;
  font-weight: 900;
}

.plain-steps small {
  display: block;
  color: var(--nc-muted);
  font-size: 0.9rem;
}

.lead-copy {
  max-width: 65ch;
  color: #43565f;
  font-size: 1.18rem;
}

.boundary-note {
  padding: 1.25rem;
  background: linear-gradient(130deg, #eafaf8, #fff5da);
  border-left: 5px solid var(--nc-coral);
  border-radius: 0.25rem var(--nc-radius) var(--nc-radius) 0.25rem;
}

.boundary-note p {
  margin: 0.4rem 0 0;
  color: #43565f;
}

.site-footer {
  color: #dce8eb;
  background:
    radial-gradient(circle at 90% 10%, rgba(191, 177, 203, 0.16), transparent 22rem),
    linear-gradient(115deg, var(--nc-petroleum-dark), #334d51 62%, #454a56);
}

.site-footer p {
  color: #aac0c8;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-contact a {
  color: #fff;
  text-underline-offset: 0.2em;
}

.footer-contact i {
  width: 1.2em;
  margin-right: 0.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: #fff;
  text-underline-offset: 0.2em;
}

.report-dialog {
  max-width: 760px;
}

.report-flow {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.report-flow .modal-header {
  padding: 1.25rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--nc-border);
}

.report-flow .modal-body {
  padding: 1.25rem;
}

.report-flow .report-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--nc-border);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.report-progress {
  height: 0.4rem;
  background: #e5f2f1;
}

.report-progress .progress-bar {
  background: linear-gradient(90deg, var(--nc-turquoise-bright), var(--nc-maize));
}

.report-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.report-category-card {
  min-height: 108px;
  padding: 0.9rem;
  color: var(--nc-charcoal);
  background: #fff;
  border: 1px solid var(--nc-border);
  border-radius: 0.85rem;
  text-align: left;
}

.report-category-card:hover,
.report-category-card:focus,
.report-category-card.selected {
  background: #eafaf8;
  border-color: var(--nc-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.13);
}

.report-category-card span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--nc-petroleum);
  font-size: 1.25rem;
  font-weight: 900;
}

.report-category-card .report-category-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.55rem;
  color: var(--category-color, var(--nc-petroleum));
  background: color-mix(in srgb, var(--category-color, var(--nc-petroleum)) 12%, white);
  border-radius: 0.65rem;
  font-size: 1rem;
}

.report-category-card strong,
.report-category-card small {
  display: block;
}

.report-category-card small {
  margin-top: 0.2rem;
  color: var(--nc-muted);
  line-height: 1.35;
}

.selected-category-label {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  color: var(--nc-petroleum-dark);
  background: #fff0c6;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 900;
}

.subcategory-grid {
  display: grid;
  gap: 0.7rem;
}

.subcategory-card {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--nc-charcoal);
  background: #fff;
  border: 1px solid var(--nc-border);
  border-radius: 0.85rem;
  text-align: left;
}

.subcategory-card strong,
.subcategory-card small {
  display: block;
}

.subcategory-card small {
  margin-top: 0.25rem;
  color: var(--nc-muted);
  line-height: 1.4;
}

.subcategory-card:hover,
.subcategory-card:focus,
.subcategory-card.selected {
  background: #eafaf8;
  border-color: var(--nc-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.13);
}

.report-picker-map-wrap {
  overflow: hidden;
  border: 1px solid var(--nc-border);
  border-radius: 0.85rem;
}

#reportPickerMap {
  height: 285px;
  background: #dbe8e9;
}

.report-picker-tip {
  padding: 0.55rem 0.8rem;
  color: #31505b;
  background: #f2f7f8;
  font-size: 0.83rem;
  font-weight: 700;
}

.account-password-notice {
  padding: 0.8rem;
  color: #78431a;
  background: #fff2db;
  border: 1px solid #eed09b;
  border-radius: 0.75rem;
  font-weight: 700;
}

.location-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: #fff9e9;
  border: 1px solid #ead59e;
  border-radius: 0.8rem;
}

.location-dot {
  display: grid;
  place-items: center;
  flex: 0 0 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  color: var(--nc-petroleum-dark);
  background: var(--nc-maize);
  border-radius: 50%;
}

.sensitive-notice,
.missing-notice,
.privacy-reminder {
  padding: 0.9rem;
  border-radius: 0.8rem;
}

.sensitive-notice {
  color: #702426;
  background: #fff1f1;
  border: 1px solid #efc6c6;
}

.missing-notice {
  color: #6f1643;
  background: #fff0f7;
  border: 1px solid #e9bdd1;
}

.sensitive-notice p,
.missing-notice p,
.privacy-reminder p {
  margin-top: 0.35rem;
}

.privacy-reminder {
  color: #244952;
  background: #edf7f7;
  border-left: 4px solid var(--nc-turquoise);
}

.address-loading,
.matches-loading {
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.8rem;
  color: var(--nc-petroleum);
  background: #eef6f7;
  border-radius: 0.65rem;
  font-weight: 800;
}

.nearby-matches {
  display: grid;
  gap: 0.75rem;
}

.nearby-match-card {
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--nc-border);
  border-radius: 0.8rem;
}

.nearby-match-card p {
  margin-bottom: 0.7rem;
  color: var(--nc-muted);
  font-size: 0.88rem;
}

.distinct-problem-wrap {
  padding: 0.9rem;
  background: #fff9e9;
  border: 1px solid #ead59e;
  border-radius: 0.8rem;
}

.no-matches {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  color: #0f5b4f;
  background: #e4f7f3;
  border-radius: 0.8rem;
}

.no-matches > span,
.report-success > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  color: #fff;
  background: #0f766e;
  border-radius: 50%;
}

.photo-preview {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem;
  background: var(--nc-ivory);
  border-radius: 0.75rem;
}

.photo-preview img {
  width: 88px;
  height: 68px;
  object-fit: cover;
  border-radius: 0.55rem;
}

.photo-preview p {
  color: var(--nc-muted);
  font-size: 0.86rem;
}

.report-success {
  display: grid;
  justify-items: center;
  padding: 2.2rem 1rem;
  text-align: center;
}

.report-success > span {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.report-success p {
  max-width: 35ch;
  color: var(--nc-muted);
}

.auth-modal {
  border: 0;
  border-radius: 1.2rem;
  box-shadow: var(--nc-shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.3rem;
  background: #edf2f3;
  border-radius: 0.8rem;
}

.auth-tabs .nav-link {
  width: 100%;
  border-radius: 0.6rem;
}

.auth-tabs .nav-link.active {
  color: #fff;
  background: var(--nc-petroleum);
}

.login-password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 108px;
  border: 1px solid #ccd9dc;
  color: #315761;
  background: #f2f7f5;
  font-size: .82rem;
  font-weight: 750;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  border-color: #88b6b2;
  color: #194e53;
  background: #e5f2ee;
}

#loginRemember { accent-color: #367b76; }

.form-feedback:empty {
  display: none;
}

.form-feedback {
  padding: 0.75rem;
  border-radius: 0.7rem;
}

.form-feedback[role="alert"] {
  border: 1px solid currentColor;
}

.form-feedback.error {
  color: #7c2020;
  background: #fbe9e9;
}

.form-feedback.success {
  color: #0b5a4f;
  background: #e0f6f2;
}

.nc-captcha {
  margin: 1rem 0;
  padding: .85rem;
  border: 1px solid #bddbd9;
  border-radius: .85rem;
  background: #f2fbf9;
}

.nc-captcha-label { margin-bottom: .55rem; font-weight: 750; color: #244956; }
.nc-captcha-label span { color: #a3323d; }
.nc-captcha-image-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-bottom: .7rem; }
.nc-captcha-image { max-width: min(100%, 210px); height: 70px; object-fit: contain; border: 1px solid #a9cac8; border-radius: .5rem; background: #fff; }
.nc-captcha-question { margin: 0; padding: .7rem 1rem; border-radius: .5rem; color: #173e52; background: #fff7d8; font-size: 1rem; font-weight: 800; }
.nc-captcha-refresh { min-height: 40px; font-size: .8rem; font-weight: 750; }
.nc-captcha-answer { width: min(100%, 270px); }
.nc-captcha-mode { display: inline-block; margin-top: .6rem; padding: 0; border: 0; color: #165775; background: transparent; font-size: .82rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.nc-captcha-mode:hover, .nc-captcha-mode:focus-visible { color: #0b787a; }
.nc-captcha-status { margin: .55rem 0 0; color: #516e78; font-size: .76rem; }
.nc-captcha-status.nc-captcha-error { color: #9c3036; font-weight: 700; }
.nc-captcha[aria-busy="true"] { opacity: .72; }

@media (max-width: 1280px) {
  .map-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toolbar-controls > div { min-width: 0; }
}

@media (max-width: 991.98px) {
  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .locate-button {
    grid-column: 1 / -1;
  }

  .map-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }

  .map-panel {
    grid-row: 1;
    height: 62vh;
    min-height: 480px;
  }

  .report-sidebar {
    max-height: 360px;
    border-top: 1px solid var(--nc-border);
    border-right: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    width: 142px;
  }

  .toolbar-controls {
    grid-template-columns: 1fr;
  }

  .locate-button {
    grid-column: auto;
  }

  .map-panel {
    height: 58vh;
    min-height: 430px;
  }

  .map-tip {
    top: 0.75rem;
    border-radius: 0.7rem;
    text-align: center;
  }

  .home-map-detail {
    inset: auto 0 0;
    width: 100%;
    height: min(72dvh, 620px);
    border-top: 1px solid var(--nc-border);
    border-left: 0;
    border-radius: 1.15rem 1.15rem 0 0;
    box-shadow: 0 -18px 46px rgba(13, 53, 69, .24);
  }

  .home-map-detail[open] { animation-name: nc-home-detail-mobile-in; }

  .floating-report-button {
    right: 0.75rem;
    bottom: 1.25rem;
  }

  .report-category-grid {
    grid-template-columns: 1fr;
  }

  .report-dialog {
    max-width: none;
    margin: 0.5rem;
  }

  #reportPickerMap {
    height: 240px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}

@keyframes nc-home-detail-mobile-in {
  from { opacity: .75; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.report-source-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: .22rem .55rem;
  border: 1px solid #dfb36b;
  border-radius: 999px;
  background: #fff4da;
  color: #6b460a;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
}
.report-source-source_pending_review {
  border-color: #98cfd1;
  background: #e6f7f7;
  color: #15565e;
}
.report-source-source_verified {
  border-color: #82c7a4;
  background: #e8f7ee;
  color: #17603b;
}
.report-source-source_needs_correction {
  border-color: #e2a7a0;
  background: #fff0ee;
  color: #8a332d;
}
