:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-soft: #fff0e9;
  --dark: #111822;
  --dark-2: #29282e;
  --ink: #1f2933;
  --muted: #64707d;
  --soft: #f7f8fa;
  --surface: #f1f3f6;
  --line: #e4e8ee;
  --white: #ffffff;
  --blue: #1976d2;
  --green: #18a85f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 107, 53, 0.14), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--surface) 52%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer,
main {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(228, 232, 238, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--dark);
  font-weight: 950;
  font-size: 1.08rem;
}

.brand img {
  border-radius: 15px;
}

.brand strong {
  color: var(--primary);
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-header nav a:not(.nav-cta):hover,
.site-footer nav a:hover,
.text-link:hover {
  color: var(--primary-dark);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
}

.nav-cta,
.button.primary {
  background: var(--primary);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 26px;
  align-items: stretch;
  padding: 36px 0 34px;
}

.hero-content,
.hero-panel,
.content-card,
.notice,
.how-it-works,
.complaint-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 232, 238, 0.92);
  border-radius: 24px;
}

.hero-content {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 62px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--dark);
  font-size: clamp(2.55rem, 7vw, 5.2rem);
  line-height: 0.94;
}

h2 {
  color: var(--dark);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

h3 {
  color: var(--dark);
  font-size: 1.08rem;
  line-height: 1.25;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.hero-panel {
  display: grid;
  align-content: stretch;
  gap: 14px;
  padding: 18px;
  background: var(--dark-2);
  color: var(--white);
  overflow: hidden;
}

.map-window {
  min-height: 440px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #e8edf1;
}

.map-toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  background: rgba(17, 24, 34, 0.88);
  border-radius: 16px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 850;
}

.map-toolbar strong {
  padding: 5px 9px;
  background: var(--primary);
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.map-canvas {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(32deg, transparent 0 41%, rgba(255, 255, 255, 0.9) 41% 45%, transparent 45%),
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, 0.86) 48% 52%, transparent 52%),
    linear-gradient(0deg, rgba(25, 118, 210, 0.13) 0 18%, transparent 18%),
    #dfe6ec;
}

.map-line {
  position: absolute;
  display: block;
  height: 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

.line-one {
  width: 74%;
  left: -8%;
  top: 36%;
  transform: rotate(-16deg);
}

.line-two {
  width: 88%;
  right: -20%;
  top: 62%;
  transform: rotate(26deg);
}

.line-three {
  width: 52%;
  left: 20%;
  top: 22%;
  transform: rotate(58deg);
}

.pin,
.cluster {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 4px solid var(--white);
}

.pin {
  width: 38px;
  height: 38px;
  border-radius: 14px 14px 14px 4px;
  transform: rotate(-45deg);
}

.pin-orange {
  left: 28%;
  top: 42%;
  background: var(--primary);
}

.pin-blue {
  right: 28%;
  top: 31%;
  background: var(--blue);
}

.pin-green {
  right: 17%;
  bottom: 22%;
  background: var(--green);
}

.cluster {
  left: 47%;
  top: 55%;
  width: 62px;
  height: 62px;
  background: var(--dark);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 950;
}

.map-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  color: var(--dark);
}

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

.map-card small {
  color: var(--muted);
  font-weight: 750;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-grid div {
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.metric-grid strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.metric-grid span {
  color: #c7ccd4;
  font-size: 0.82rem;
  font-weight: 800;
}

.section,
.page-title {
  padding: 36px 0;
}

.section-heading {
  margin-bottom: 20px;
}

.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 950;
}

.category-row,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-row.compact {
  padding-bottom: 12px;
}

.category-chip,
.filters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dark);
  font-size: 0.92rem;
  font-weight: 900;
}

.category-chip:hover,
.filters a:hover {
  border-color: var(--primary);
}

.category-chip span,
.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--category-color, var(--primary));
}

.filters a.active,
.category-chip.selected {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.complaint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.complaint-card {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.complaint-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--category-color, var(--primary)) 52%, var(--line));
  background: #ffffff;
}

.complaint-card a {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.card-rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--category-color, var(--primary));
}

.card-media {
  display: block;
  height: 138px;
  margin: -6px -6px 16px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--category-color, var(--primary)) 20%, transparent), transparent 52%),
    var(--soft);
}

.card-media-placeholder .category-dot {
  width: 42px;
  height: 42px;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--category-color, var(--primary)) 12%, transparent);
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.status-pill {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.status-analysis {
  background: #ffe1a6;
  color: #8c5200;
}

.status-progress {
  background: #dceeff;
  color: #12589e;
}

.status-resolved {
  background: #dff5e7;
  color: #146c3e;
}

.status-rejected {
  background: #e6e8ec;
  color: #4b5563;
}

.complaint-card h3 {
  margin: 17px 0 9px;
}

.complaint-card p {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
}

.card-meta {
  display: grid;
  gap: 9px;
  margin: auto 0 14px;
}

.card-meta div,
.detail-list div {
  display: grid;
  gap: 2px;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--dark);
  font-weight: 850;
}

.card-footer {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.card-footer strong {
  margin-left: auto;
  color: var(--primary-dark);
}

.notice {
  padding: 22px;
  color: var(--muted);
  font-weight: 850;
}

.how-it-works {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  margin: 38px 0 56px;
  padding: 30px;
}

.how-it-works ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-it-works li {
  display: grid;
  gap: 4px;
  padding: 17px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.how-it-works strong {
  color: var(--dark);
}

.how-it-works span {
  color: var(--muted);
  font-weight: 700;
}

.page-title {
  max-width: 830px;
}

.page-title p {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.detail-page {
  padding-bottom: 16px;
}

.detail-hero {
  padding: 38px 0 30px;
}

.back-link {
  color: var(--muted);
  font-weight: 900;
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 14px;
  color: var(--muted);
  font-weight: 950;
}

.detail-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 950;
}

.detail-action:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.primary-action {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.primary-action:hover {
  color: var(--white);
  background: var(--primary-dark);
}

.danger-action {
  color: #b42318;
}

.detail-cover {
  position: relative;
  display: block;
  height: clamp(240px, 44vw, 470px);
  margin: -10px 0 20px;
  overflow: hidden;
  background: var(--dark-2);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(17, 24, 34, 0.15);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 12px;
  background: rgba(17, 24, 34, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 950;
}

.ad-strip {
  min-height: 55px;
  margin: 0 0 18px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  color: var(--ad-text);
  background: var(--ad-bg);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(17, 24, 34, 0.12);
}

.ad-strip:hover {
  transform: translateY(-1px);
}

.ad-media {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ad-accent);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 950;
}

.ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-copy {
  min-width: 0;
  flex: 1;
  display: grid;
}

.ad-copy strong,
.ad-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-copy strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.ad-copy small {
  opacity: 0.76;
  font-size: 0.76rem;
  font-weight: 800;
}

.ad-label {
  flex: 0 0 auto;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
}

.detail-main,
.detail-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.content-card {
  padding: 24px;
}

.content-card h2 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.content-card p {
  color: var(--muted);
  font-weight: 700;
}

.media-card {
  overflow: hidden;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.media-item {
  display: block;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.media-item img,
.media-item video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.video-item {
  background: var(--dark);
}

.video-item video {
  object-fit: contain;
}

.official-card {
  border-color: #ffd6c2;
  background:
    linear-gradient(145deg, rgba(255, 107, 53, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.96);
}

.official-response {
  padding: 14px;
  margin-bottom: 14px;
  background: #fff4ee;
  border: 1px solid #ffd6c2;
  border-radius: 16px;
}

.official-response strong,
.official-response small {
  display: block;
}

.official-response small {
  margin: 2px 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.official-media-grid {
  margin-top: 10px;
}

.resolution-card {
  background:
    linear-gradient(145deg, rgba(20, 108, 62, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.96);
}

.resolution-bars {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.resolution-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.resolution-row-head strong,
.resolution-row-head span,
.resolution-row small {
  font-weight: 900;
}

.resolution-row-head span {
  color: var(--dark);
}

.resolution-row small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.resolution-track {
  height: 10px;
  overflow: hidden;
  background: #e9ecf1;
  border-radius: 999px;
}

.resolution-track span {
  display: block;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
}

.resolution-row.resolved .resolution-track span {
  background: #146c3e;
}

.resolution-row.unresolved .resolution-track span {
  background: #b45309;
}

.muted {
  color: var(--muted);
}

.osm-embed {
  height: 240px;
  margin: 14px 0 12px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.osm-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.timeline-card {
  overflow: hidden;
}

.timeline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
}

.timeline-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: block;
  background: var(--primary);
  border: 6px solid #fff4ee;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ffd6c2;
}

.timeline-official .timeline-marker {
  background: var(--blue);
  border-color: #e8f2ff;
  box-shadow: 0 0 0 1px #cfe4ff;
}

.timeline-media-event .timeline-marker {
  background: var(--green);
  border-color: #e7f8ee;
  box-shadow: 0 0 0 1px #c9efd8;
}

.timeline-entry {
  min-width: 0;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.timeline-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.timeline-entry-head strong {
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.25;
}

.timeline-entry-head small,
.comment-item small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.timeline-entry p,
.comment-item p {
  margin: 8px 0 0;
}

.timeline-media {
  display: block;
  width: min(100%, 360px);
  max-height: 260px;
  margin-top: 12px;
  object-fit: cover;
  background: var(--dark);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.comment-item div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.comment-item strong {
  color: var(--dark);
}

.wide-button {
  width: 100%;
  margin-top: 16px;
}

.detail-list {
  display: grid;
  gap: 14px;
}

.cta-card {
  background:
    linear-gradient(145deg, rgba(255, 107, 53, 0.2), transparent 46%),
    var(--dark-2);
}

.cta-card h2,
.cta-card p {
  color: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  max-width: 540px;
  margin: 6px 0 0;
}

@supports not (color: color-mix(in srgb, red, white)) {
  .complaint-card:hover {
    border-color: var(--category-color, var(--primary));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .how-it-works,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
  }

  .complaint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-aside {
    order: -1;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  main {
    width: min(1160px, calc(100% - 28px));
  }

  .site-header nav {
    gap: 10px;
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-content,
  .hero-panel,
  .how-it-works,
  .content-card {
    border-radius: 18px;
    padding: 20px;
  }

  .map-window {
    min-height: 340px;
  }

  .metric-grid,
  .complaint-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-footer {
    flex-wrap: wrap;
  }

  .detail-cover {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    border-radius: 18px;
  }

  .ad-strip,
  .content-card {
    max-width: calc(100vw - 28px);
  }

  .timeline-entry-head,
  .comment-item div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .timeline-entry-head small,
  .comment-item small {
    white-space: normal;
  }

  .ad-label {
    display: none;
  }
}

/* Enterprise institutional refresh */
body {
  background:
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 34%, #eef2f6 100%);
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--dark);
  border-radius: 10px;
  color: var(--white);
  font-weight: 900;
}

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

.site-header,
.site-footer,
main {
  width: min(1220px, calc(100% - 48px));
}

.site-header {
  min-height: 76px;
  padding-inline: 18px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 232, 238, 0.96);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(17, 24, 34, 0.08);
}

.brand img {
  box-shadow: 0 10px 22px rgba(255, 107, 53, 0.2);
}

.site-header nav {
  gap: 20px;
}

.site-header nav a:not(.nav-cta) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.nav-cta,
.button {
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-cta:hover,
.button.primary:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
  box-shadow: 0 14px 28px rgba(255, 107, 53, 0.26);
}

.button.secondary:hover {
  transform: translateY(-1px);
  border-color: #c9d3df;
  box-shadow: 0 12px 26px rgba(17, 24, 34, 0.08);
}

.enterprise-hero {
  position: relative;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  padding: clamp(34px, 5vw, 72px) 0 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 6.6vw, 5.15rem);
  letter-spacing: 0;
}

.hero-copy .lead {
  max-width: 710px;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 760;
}

.hero-backdrop {
  position: relative;
  z-index: 1;
  order: 2;
}

.command-center {
  min-height: 548px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, #111822 0%, #1e2a36 56%, #111822 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 36px 74px rgba(17, 24, 34, 0.28);
}

.command-topbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: #dbe4ef;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.command-topbar strong {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--white);
  letter-spacing: 0;
}

.command-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 1fr auto;
  gap: 14px;
  min-height: 456px;
}

.command-map {
  position: relative;
  grid-row: span 2;
  min-height: 456px;
  overflow: hidden;
  background:
    linear-gradient(32deg, transparent 0 41%, rgba(255, 255, 255, 0.75) 41% 44%, transparent 44%),
    linear-gradient(118deg, transparent 0 50%, rgba(255, 255, 255, 0.65) 50% 53%, transparent 53%),
    linear-gradient(180deg, #e8edf4 0%, #d8e0e8 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
}

.command-map::before,
.command-map::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(17, 24, 34, 0.08);
  border-radius: 18px;
}

.command-map::after {
  inset: auto 22px 22px auto;
  width: 112px;
  height: 112px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(17, 24, 34, 0.12) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(17, 24, 34, 0.12) 48% 52%, transparent 52%);
}

.command-map .map-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 0 rgba(17, 24, 34, 0.04);
}

.command-map .pin {
  width: 42px;
  height: 42px;
  border-radius: 14px 14px 14px 5px;
  box-shadow: 0 14px 24px rgba(17, 24, 34, 0.18);
}

.command-map .cluster {
  width: 72px;
  height: 72px;
  font-size: 1.16rem;
  box-shadow: 0 18px 28px rgba(17, 24, 34, 0.24);
}

.command-panel {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  color: var(--white);
}

.panel-label {
  color: #aebbc9;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-panel strong {
  max-width: 230px;
  font-size: clamp(1.2rem, 2.2vw, 1.66rem);
  line-height: 1.08;
}

.panel-bars,
.status-stack {
  display: grid;
  gap: 9px;
}

.panel-bars span,
.status-stack i {
  display: block;
  height: 10px;
  border-radius: 999px;
}

.panel-bars span {
  background: #ffb08a;
}

.panel-bars span:nth-child(2) {
  width: 74%;
  background: #6bb7ff;
}

.panel-bars span:nth-child(3) {
  width: 52%;
  background: #7be1a9;
}

.status-stack i {
  background: rgba(255, 255, 255, 0.16);
}

.status-stack i:nth-child(1) {
  width: 88%;
  background: #7be1a9;
}

.status-stack i:nth-child(2) {
  width: 68%;
  background: #6bb7ff;
}

.status-stack i:nth-child(3) {
  width: 42%;
  background: #ffb08a;
}

.executive-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -10px 0 34px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(17, 24, 34, 0.08);
}

.executive-strip div {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.executive-strip strong {
  color: var(--dark);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1;
}

.executive-strip span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  padding: 54px 0;
}

.section-heading h2 {
  max-width: 760px;
}

.section-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.platform-section {
  padding-top: 64px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.capability-grid article {
  min-height: 258px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(17, 24, 34, 0.06);
}

.capability-grid article span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #111822;
  border-radius: 12px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 950;
}

.capability-grid article p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.municipal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: stretch;
  padding: clamp(28px, 5vw, 52px);
  margin: 30px 0;
  background:
    linear-gradient(135deg, #111822 0%, #1e2a36 62%, #24313e 100%);
  border-radius: 28px;
  color: var(--white);
  box-shadow: 0 30px 70px rgba(17, 24, 34, 0.22);
}

.municipal-section h2,
.municipal-section p,
.municipal-section .eyebrow {
  color: var(--white);
}

.municipal-copy p:not(.eyebrow) {
  max-width: 610px;
  color: #d7dee8;
  font-size: 1.03rem;
  font-weight: 700;
}

.municipal-stack {
  display: grid;
  gap: 12px;
}

.municipal-stack div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.municipal-stack strong {
  color: var(--white);
  font-size: 1rem;
}

.municipal-stack span {
  color: #c9d3df;
  font-weight: 700;
}

.public-section {
  padding-top: 66px;
}

.governance-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  align-items: start;
  padding: 36px;
  margin: 40px 0 56px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(17, 24, 34, 0.08);
}

.governance-section ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.governance-section li {
  display: grid;
  gap: 5px;
  padding: 17px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.governance-section strong {
  color: var(--dark);
}

.governance-section span {
  color: var(--muted);
  font-weight: 700;
}

.page-title {
  max-width: 100%;
  padding: 56px 0 28px;
}

.page-title h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5.8vw, 4.7rem);
  line-height: 0.98;
}

.page-title p {
  max-width: 760px;
}

.transparency-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: end;
}

.transparency-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.transparency-summary div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(17, 24, 34, 0.06);
}

.transparency-summary strong {
  color: var(--dark);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
}

.transparency-summary span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filters {
  padding: 6px 0 14px;
}

.city-ranking-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin: 16px 0 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(17, 24, 34, 0.06);
}

.city-ranking-strip h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.city-ranking-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.city-ranking-links a,
.ranking-list a {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
}

.city-ranking-links a:hover,
.ranking-list a:hover,
.city-ranking-links a.selected,
.ranking-list a.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.city-ranking-links strong,
.ranking-list strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--dark);
  border-radius: 9px;
  color: var(--white);
  font-size: 0.78rem;
}

.city-ranking-links span,
.ranking-list span {
  min-width: 0;
  overflow: hidden;
  color: var(--dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-ranking-links em,
.ranking-list em {
  color: var(--primary-dark);
  font-style: normal;
}

.section-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.compact-table {
  display: grid;
  gap: 8px;
}

.compact-table div {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.compact-table span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-table strong {
  color: var(--dark);
}

.map-page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: end;
}

.map-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.map-summary div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(17, 24, 34, 0.06);
}

.map-summary strong {
  color: var(--dark);
  font-size: 2rem;
  line-height: 1;
}

.map-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  margin: 14px 0 26px;
}

.map-shell {
  min-height: 610px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(17, 24, 34, 0.08);
}

.public-map {
  width: 100%;
  min-height: 610px;
}

.map-sidebar,
.ranking-list {
  display: grid;
  gap: 14px;
}

.leaflet-popup-content {
  display: grid;
  gap: 5px;
  min-width: 220px;
  margin: 12px;
  color: var(--ink);
}

.leaflet-popup-content strong,
.leaflet-popup-content span,
.leaflet-popup-content small,
.leaflet-popup-content a {
  display: block;
}

.leaflet-popup-content span,
.leaflet-popup-content small {
  color: var(--muted);
  font-weight: 750;
}

.leaflet-popup-content a {
  color: var(--primary-dark);
  font-weight: 950;
}

.filters a,
.category-chip {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.filters a:hover,
.category-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 24, 34, 0.08);
}

.complaint-card {
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(17, 24, 34, 0.06);
}

.content-card,
.notice {
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(17, 24, 34, 0.06);
}

.site-footer {
  margin-top: 18px;
}

@media (max-width: 1050px) {
  .enterprise-hero,
  .transparency-hero,
  .municipal-section,
  .governance-section,
  .city-ranking-strip,
  .map-page-title,
  .public-map-layout {
    grid-template-columns: 1fr;
  }

  .hero-backdrop {
    order: initial;
  }

  .enterprise-hero {
    min-height: auto;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header,
  .site-footer,
  main {
    width: min(1220px, calc(100% - 32px));
  }

  .site-header {
    align-items: stretch;
    padding: 14px;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-header nav a {
    min-height: 38px;
    justify-content: center;
    padding: 0 10px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
    font-size: 0.82rem;
  }

  .site-header nav a.nav-cta {
    grid-column: 1 / -1;
    min-width: 0;
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
  }

  .command-center {
    min-height: auto;
    padding: 14px;
    border-radius: 22px;
  }

  .command-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .command-map {
    min-height: 340px;
    grid-row: auto;
  }

  .command-panel {
    min-height: 160px;
  }

  .executive-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .municipal-section,
  .governance-section {
    padding: 24px;
    border-radius: 22px;
  }

  .transparency-summary {
    grid-template-columns: 1fr 1fr;
  }

  .city-ranking-links,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  main {
    width: min(1220px, calc(100% - 24px));
  }

  .site-header {
    margin-top: 6px;
    border-radius: 18px;
  }

  .site-header nav a:not(.nav-cta) {
    display: inline-flex;
  }

  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .enterprise-hero {
    gap: 18px;
    padding-top: 26px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
    line-height: 0.98;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-row span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .command-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .command-map {
    min-height: 300px;
  }

  .command-map .cluster {
    width: 62px;
    height: 62px;
  }

  .executive-strip,
  .capability-grid,
  .transparency-summary,
  .city-ranking-links,
  .insight-grid,
  .map-summary,
  .map-sidebar {
    grid-template-columns: 1fr;
  }

  .map-shell,
  .public-map {
    min-height: 430px;
  }

  .executive-strip div {
    min-height: 102px;
  }

  .section {
    padding: 38px 0;
  }

  .page-title {
    padding: 38px 0 22px;
  }

  .page-title h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .capability-grid article {
    min-height: auto;
  }

  .municipal-section,
  .governance-section {
    padding: 20px;
  }
}
