:root {
  --red: #e50914;
  --blue: #0b4de8;
  --navy: #07152f;
  --text: #10162f;
  --muted: #667085;
  --border: #e9eaf2;
  --bg: #fbfbff;
  --card: #fff;
  --soft-red: #fff0f1;
  --soft-blue: #eef4ff;
  --green: #16a34a;
  --orange: #f59e0b;
  --shadow: 0 14px 35px rgba(16, 24, 40, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

body.hit-civic-page {
  background:
    radial-gradient(circle at 76% 10%, rgba(229, 9, 20, 0.09), transparent 30%),
    radial-gradient(circle at 90% 5%, rgba(11, 77, 232, 0.08), transparent 23%),
    linear-gradient(180deg, #fff, #fbfbff);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.page {
  max-width: 1440px;
  margin: auto;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}

.top-header {
  min-height: 86px;
  height: auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  min-width: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 12px 24px rgba(11, 77, 232, 0.18);
  flex-shrink: 0;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.brand strong span { color: var(--red); }

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 150px) minmax(120px, 150px);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.search-box,
.select-box {
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
  min-width: 0;
}

.search-box { padding-right: 8px; }

.search-box-icon,
.select-box-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.search-box input,
.select-box select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.search-submit-btn {
  flex-shrink: 0;
  height: 32px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--blue), #0636b0);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.header-actions .login-link.hidden { display: none; }

.header-actions .manage-link {
  height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #344054;
  background: #fff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.header-actions .manage-link:hover,
.header-actions .manage-link.is-active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(229, 9, 20, 0.04);
}

.primary-btn {
  border: 0;
  background: linear-gradient(135deg, var(--red), #b80710);
  color: #fff;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(229, 9, 20, 0.2);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.primary-btn .btn-short { display: none; }

@media (max-width: 1400px) {
  .primary-btn .btn-full { display: none; }
  .primary-btn .btn-short { display: inline; }

  .brand small { display: none; }

  .top-header {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
    padding: 12px 20px;
    gap: 12px;
  }
}

.nav {
  height: 54px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 28px;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.nav::-webkit-scrollbar {
  height: 4px;
}

.nav::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 999px;
}

.nav::-webkit-scrollbar-track {
  background: transparent;
}

.nav a {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}

.nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 62px 54px 38px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-red);
  color: var(--red);
  border: 1px solid rgba(229, 9, 20, 0.14);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -2.6px;
  max-width: 720px;
  margin-bottom: 22px;
}

.hero h1 span { color: var(--red); }

.hero p {
  color: #4b5563;
  font-size: 19px;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr 1fr 155px;
  gap: 10px;
  max-width: 650px;
  margin-bottom: 24px;
}

.hero-search select,
.hero-search input {
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  outline: 0;
  color: #344054;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}

.hero-search button {
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 810px;
}

.trust-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--soft-blue);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.trust-item strong { display: block; font-size: 12px; }
.trust-item span { display: block; color: var(--muted); font-size: 10px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
  width: 100%;
  min-height: 505px;
  overflow: visible;
}

.visual-stage {
  position: relative;
  width: 500px;
  height: 505px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.orbit {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 2px dashed rgba(11, 77, 232, 0.14);
  pointer-events: none;
}

.hero-host {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  height: auto;
  max-height: 505px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(7, 21, 47, 0.18));
}

.float-card {
  position: absolute;
  min-width: 175px;
  max-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  z-index: 4;
}

.float-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--soft-blue), #fff);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.float-card strong { display: block; font-size: 11px; line-height: 1.25; }
.float-card span { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; }

.status {
  display: inline-block;
  margin-top: 3px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 8px;
  font-weight: 900;
  font-style: normal;
}

.status.official {
  background: #dbeafe;
  color: #1d4ed8;
}

.f1 { left: -32px; top: 48px; }
.f2 { left: -72px; top: 188px; }
.f3 { right: -32px; top: 78px; }
.f4 { right: -72px; top: 238px; }

.section {
  margin: 0 38px 24px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
  scroll-margin-top: 150px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 { font-size: 24px; letter-spacing: -0.4px; }

.view-link {
  color: var(--blue);
  font-weight: 900;
  font-size: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.cat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 22px 10px;
  text-align: center;
  transition: 0.2s ease;
}

.cat-card:hover,
.page-card:hover,
.rated-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.cat-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: var(--soft-blue);
  font-size: 28px;
  color: var(--blue);
}

.cat-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.cat-card span { color: var(--muted); font-size: 11px; }

.three-col,
.two-col {
  display: grid;
  gap: 24px;
  margin: 0 38px 24px;
}

.three-col {
  grid-template-columns: 1.25fr 0.9fr 0.95fr;
}

.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.why-list {
  flex: 1;
}

.panel > h2 {
  font-size: 24px;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}

.pages-section .pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.page-img {
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: linear-gradient(135deg, rgba(11, 77, 232, 0.12), rgba(229, 9, 20, 0.1)), #fff;
  position: relative;
  flex-shrink: 0;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.badge.verified { background: var(--green); }
.badge.official { background: var(--blue); }

.page-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.page-body h3 {
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.page-body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1;
}

.page-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.outline-btn,
.fill-btn {
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}

.civic-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 112px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.civic-action-btn:hover {
  transform: translateY(-1px);
}

.civic-action-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.page-actions .civic-action-btn {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
}

.outline-btn {
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.outline-btn.is-following,
.civic-action-btn.outline-btn.is-following {
  background: var(--soft-blue);
  border-color: var(--blue);
  color: var(--blue);
}

.fill-btn {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
}

.page-actions .fill-btn,
.civic-detail-actions .fill-btn,
.civic-detail-actions .outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.civic-detail-hero {
  margin: 24px 42px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--soft-blue));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.civic-detail-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
}

.civic-detail-visual {
  position: relative;
  min-height: 160px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--soft-blue), #fff5f8);
  display: grid;
  place-items: center;
}

.civic-detail-icon {
  font-size: 64px;
}

.civic-detail-visual .badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.civic-detail-intro h1 {
  font-size: 38px;
  line-height: 1.1;
  margin: 10px 0 12px;
  color: var(--navy);
}

.civic-detail-location,
.civic-detail-rating {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.civic-detail-rating {
  color: var(--orange);
  margin-bottom: 0;
}

.civic-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.civic-follow-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.civic-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  margin: 24px 42px 0;
}

.civic-detail-panel h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.civic-detail-about {
  color: #344054;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.civic-detail-meta {
  list-style: none;
  display: grid;
  gap: 14px;
}

.civic-detail-meta li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.civic-detail-meta li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.civic-detail-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.civic-detail-meta strong,
.civic-detail-meta a {
  color: var(--text);
  font-size: 14px;
}

.civic-detail-meta a {
  color: var(--blue);
  word-break: break-word;
}

.why-list {
  list-style: none;
  display: grid;
  gap: 13px;
  margin-top: 16px;
  color: #344054;
  font-weight: 700;
  font-size: 14px;
}

.why-list li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 12px;
}

.rated-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  flex: 1;
  align-content: start;
}

.rated-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  transition: 0.2s ease;
}

.party-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--soft-blue), #fff);
  font-size: 18px;
  font-weight: 900;
}

.rated-card strong { display: block; font-size: 13px; }
.rated-card span { display: block; color: var(--muted); font-size: 11px; }

.rating {
  color: var(--orange);
  font-weight: 900;
  font-size: 12px;
}

.how-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  margin: 0 38px 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.step-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 34px;
}

.step-no {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  margin: 0 auto -8px;
  position: relative;
  z-index: 2;
}

.step strong { display: block; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 12px; }

.list-cta {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border-color: rgba(229, 9, 20, 0.15);
}

.list-cta h2 { font-size: 26px; margin-bottom: 14px; }

.list-cta ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
  margin-bottom: 18px;
}

.list-cta li::before {
  content: "✓";
  color: var(--green);
  margin-right: 8px;
}

.browse {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.country-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.country-card strong {
  display: block;
  line-height: 1.35;
  font-size: 14px;
}

.country-card .chips {
  margin-top: auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
  color: #344054;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  max-width: 100%;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.chip.active,
.chip-more {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

button.chip {
  font-family: inherit;
}

.chip-extra[hidden] {
  display: none;
}

.chip-more:hover {
  background: #0940c9;
  border-color: #0940c9;
  color: #fff;
}

.city-card.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(11, 77, 232, 0.12);
}

.notice {
  margin: 0 38px 24px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
}

.cta {
  margin: 0 38px 32px;
  padding: 34px 44px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #07152f, #0b4de8);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(11, 77, 232, 0.18);
}

.cta h2 { font-size: 32px; margin-bottom: 6px; }
.cta p { opacity: 0.9; }

.cta button {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 16px 26px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

footer { padding: 0 38px 34px; }

.footer-inner {
  border-top: 1px solid var(--border);
  background: #fff;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr;
  gap: 34px;
}

.footer-col h3 { font-size: 15px; margin-bottom: 14px; }

.footer-col p,
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 9px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.newsletter {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 48px;
  margin-top: 12px;
}

.newsletter input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
}

.newsletter button {
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.copy-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.section-hero {
  padding: 48px 54px 32px;
  scroll-margin-top: 150px;
}

.section-hero .tag { margin-bottom: 14px; }

.section-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.section-hero h1 span { color: var(--red); }

.section-hero p {
  font-size: 18px;
  color: #4b5563;
  max-width: 640px;
}

.section-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hub-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  background: #fff;
  transition: 0.2s ease;
  text-align: center;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  border-color: var(--blue);
}

.hub-icon {
  display: block;
  font-size: 36px;
  margin-bottom: 10px;
}

.hub-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.hub-card span {
  font-size: 12px;
  color: var(--muted);
}

.category-grid--section {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.browse--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.city-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  transition: 0.2s ease;
}

.city-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.city-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.city-card span {
  color: var(--muted);
  font-size: 12px;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.notice-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  overflow: hidden;
}

.notice-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--soft-blue);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.notice-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  word-break: break-word;
}

.notice-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  word-break: break-word;
}

.notice-card p:last-child {
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.section-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 12px 0;
}

.section-empty a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 1200px) {
  .top-header,
  .hero,
  .three-col,
  .two-col,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .top-header {
    height: auto;
    padding: 16px 20px;
    gap: 12px;
  }

  .header-search {
    grid-template-columns: 1fr 1fr;
  }

  .header-search .search-box {
    grid-column: 1 / -1;
  }

  .header-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .primary-btn .btn-full { display: none; }
  .primary-btn .btn-short { display: inline; }

  .nav {
    justify-content: flex-start;
    gap: 4px;
  }

  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .pages-section .pages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browse { grid-template-columns: repeat(2, 1fr); }
  .browse--wide,
  .city-grid,
  .notice-grid,
  .hub-grid,
  .category-grid--section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section-hero { padding: 40px 20px 24px; }
  .hero h1 { font-size: 42px; }
  .hero-search,
  .trust-row,
  .steps,
  .cta { grid-template-columns: 1fr; }

  .section,
  .three-col,
  .two-col,
  .how-grid,
  .notice,
  .cta { margin-left: 14px; margin-right: 14px; }

  .civic-detail-hero,
  .civic-detail-grid {
    margin-left: 14px;
    margin-right: 14px;
  }

  .civic-detail-head,
  .civic-detail-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .pages-section .pages-grid,
  .browse,
  .browse--wide,
  .city-grid,
  .notice-grid,
  .hub-grid,
  .category-grid--section,
  .footer-inner { grid-template-columns: 1fr; }

  .float-card {
    position: static;
    margin: 10px 0;
  }

  .hero-visual { display: block; }
  .visual-stage,
  .orbit { display: none; }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .header-actions .manage-link,
  .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .primary-btn .btn-full { display: inline; }
  .primary-btn .btn-short { display: none; }
}

.hit-civic-list-page .civic-list-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 42px 56px;
}

.civic-list-head {
  margin: 18px 0 28px;
}

.civic-list-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 12px 0;
}

.civic-list-head p {
  color: var(--muted);
  max-width: 720px;
}

.civic-list-alert {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.civic-list-alert.hidden { display: none; }

.civic-list-alert-success {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #166534;
}

.civic-list-alert-error {
  background: var(--soft-red);
  border: 1px solid #fecaca;
  color: #991b1b;
}

.civic-list-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 32px;
  overflow: visible;
}

.civic-list-form.is-submitted {
  opacity: 0.72;
}

.civic-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.civic-list-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.civic-list-field-wide {
  grid-column: 1 / -1;
}

.civic-list-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

.civic-list-field span,
.civic-list-sections legend {
  font-weight: 700;
  font-size: 0.95rem;
}

.civic-list-field em {
  color: var(--red);
  font-style: normal;
}

.civic-list-field > input,
.civic-list-field > textarea,
.civic-list-field > select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.civic-list-field > textarea {
  resize: vertical;
  min-height: 96px;
}

.civic-list-sections {
  border: 0;
  padding: 0;
  margin: 0;
}

.civic-list-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 6px 0 12px;
}

.civic-list-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.civic-list-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.civic-list-chip span {
  display: inline;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
}

.civic-list-chip input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.civic-list-chip:has(input:checked) {
  border-color: var(--red);
  background: var(--soft-red);
}

.civic-list-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.civic-list-actions .primary-btn,
.civic-list-actions .outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
}

.civic-list-actions .primary-btn {
  box-shadow: 0 6px 14px rgba(229, 9, 20, 0.18);
}

.civic-list-actions .outline-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  box-shadow: none;
}

.civic-list-actions .outline-btn:hover {
  border-color: var(--navy);
  background: #f8fafc;
}

.civic-list-note {
  width: 100%;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 900px) {
  .hit-civic-list-page .civic-list-shell {
    padding: 20px 18px 40px;
  }

  .civic-list-grid,
  .civic-list-contact-grid {
    grid-template-columns: 1fr;
  }

  .civic-list-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .civic-list-actions .primary-btn,
  .civic-list-actions .outline-btn {
    width: 100%;
  }
}

.hc-swal-popup.swal2-popup {
  width: min(420px, calc(100vw - 32px));
  padding: 28px 28px 24px;
  border-radius: 18px;
  text-align: center;
  box-sizing: border-box;
}

.hc-swal-icon.swal2-icon {
  margin: 0 auto 18px;
  width: 64px;
  height: 64px;
  border-width: 3px;
}

.hc-swal-icon-custom.swal2-icon {
  border-color: #86efac;
  color: #16a34a;
}

.hc-swal-check {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.hc-swal-title.swal2-title {
  padding: 0;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #10162f;
  line-height: 1.3;
}

.hc-swal-text.swal2-html-container {
  margin: 0 0 22px;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #667085;
}

.hc-swal-confirm.swal2-confirm {
  border: 0;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), #b80710);
  box-shadow: 0 12px 24px rgba(229, 9, 20, 0.22);
}

.hc-swal-confirm.swal2-confirm:hover {
  background: linear-gradient(135deg, #b80710, var(--red));
}

.hit-civic-admin-page .civic-admin-shell,
.hit-civic-admin-page .civic-list-shell {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 42px 64px;
}

.civic-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.civic-admin-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.civic-admin-nav a.is-active,
.civic-admin-nav a:hover {
  border-color: var(--red);
  background: var(--soft-red);
  color: var(--text);
}

.civic-admin-head {
  margin-bottom: 24px;
}

.civic-admin-head h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
  margin: 12px 0;
}

.civic-admin-head p {
  color: var(--muted);
  max-width: 760px;
}

.civic-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.civic-admin-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.civic-admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.civic-admin-stat strong {
  font-size: 1.8rem;
  line-height: 1;
}

.civic-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.civic-admin-actions .primary-btn,
.civic-admin-actions .outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  height: auto;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
}

.civic-admin-actions .outline-btn {
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.civic-admin-actions .primary-btn:hover,
.civic-admin-actions .outline-btn:hover {
  transform: translateY(-1px);
}

.civic-admin-cta .civic-admin-actions,
.civic-admin-contact .civic-admin-actions {
  margin-bottom: 0;
}

.civic-admin-empty,
.civic-admin-panel,
.civic-admin-contact,
.civic-admin-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.civic-admin-empty {
  text-align: center;
}

.civic-admin-empty p,
.civic-admin-cta p {
  color: var(--muted);
  margin: 10px 0 18px;
}

.civic-admin-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.civic-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.civic-admin-table th,
.civic-admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.civic-admin-table th {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.civic-admin-page-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.civic-admin-page-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft-blue);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.civic-admin-page-cell small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.civic-admin-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.civic-admin-status--active {
  background: #ecfdf3;
  color: #166534;
}

.civic-admin-status--pending {
  background: #fff7ed;
  color: #c2410c;
}

.civic-admin-row-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.civic-admin-row-actions a {
  color: var(--blue);
  font-weight: 700;
}

.civic-admin-card-grid,
.civic-admin-topic-grid,
.civic-admin-panel-grid,
.civic-admin-steps {
  display: grid;
  gap: 18px;
}

.civic-admin-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.civic-admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.civic-admin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.civic-admin-card h2 {
  margin-bottom: 8px;
}

.civic-admin-card p {
  color: var(--muted);
}

.civic-admin-card-meta {
  margin-top: 8px;
  font-size: 0.9rem;
}

.civic-admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.civic-admin-card-actions .primary-btn,
.civic-admin-card-actions .outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.civic-admin-card-actions .primary-btn {
  box-shadow: 0 6px 14px rgba(229, 9, 20, 0.18);
}

.civic-admin-card-actions .primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(229, 9, 20, 0.24);
}

.civic-admin-card-actions .outline-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  box-shadow: none;
}

.civic-admin-card-actions .outline-btn:hover {
  border-color: var(--navy);
  background: #f8fafc;
  transform: translateY(-1px);
}

.civic-admin-steps {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}

.civic-admin-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.civic-admin-step-no {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft-red);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.civic-admin-step-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.civic-admin-step h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.civic-admin-step p,
.civic-admin-topic p,
.civic-admin-badge-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.civic-admin-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.civic-admin-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.civic-admin-list li + li {
  margin-top: 10px;
}

.civic-admin-badge-card {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.civic-admin-badge-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.civic-admin-topic-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.civic-admin-topic {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.civic-admin-topic-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.civic-admin-faq {
  display: grid;
  gap: 12px;
}

.civic-admin-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
}

.civic-admin-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
}

.civic-admin-faq-item p {
  color: var(--muted);
  padding-bottom: 16px;
}

.civic-admin-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.civic-admin-contact-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.civic-admin-contact-links a {
  color: var(--blue);
  font-weight: 700;
}

.civic-admin-cta {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .hit-civic-admin-page .civic-admin-shell,
  .hit-civic-admin-page .civic-list-shell,
  .hit-civic-list-page .civic-list-shell {
    padding: 20px 18px 40px;
  }

  .civic-admin-stats,
  .civic-admin-panel-grid {
    grid-template-columns: 1fr;
  }

  .civic-admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .civic-admin-actions .primary-btn,
  .civic-admin-actions .outline-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .civic-admin-contact {
    flex-direction: column;
    align-items: stretch;
  }
}
