html {
  font-size: 14px;
}

.db-admin-actions-col {
  white-space: nowrap;
  width: 1%;
}

.db-admin-actions-start {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.db-admin-pager .page-link {
  border-radius: 0.45rem;
}

#dbLookupModal .table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

#dbLookupModal .table thead .db-admin-actions-start {
  z-index: 3;
}

h1.h1{
    font-size:2.0rem;
    line-height:2.5rem;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f7f9fc;
  color: #0f172a;
}

.navbar {
  z-index: 1040;
}

.navbar-toggler {
  position: relative;
  z-index: 1042;
  width: 42px;
  height: 38px;
  display: inline-grid;
  place-items: center;
}

.navbar-toggler-close {
  display: none;
  font-size: 1.25rem;
  line-height: 1;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  display: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-close {
  display: inline-block;
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: start center;
  padding: clamp(1rem, 5vw, 4rem);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}

.site-search-overlay[hidden] {
  display: none;
}

.search-overlay-open {
  overflow: hidden;
}

.site-search-panel {
  position: relative;
  width: min(920px, 100%);
  margin-top: clamp(3rem, 12vh, 8rem);
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  padding: clamp(1rem, 4vw, 2rem);
}

.site-search-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.site-search-form {
  padding-right: 3rem;
}

.site-search-logo {
  width: min(360px, 72%);
  margin-bottom: 1rem;
}

.site-search-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-search-label {
  display: block;
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
}

.site-search-input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.site-search-input-row > .bi {
  color: #2563eb;
  font-size: 1.4rem;
}

.site-search-input-row .form-control {
  min-height: 48px;
  font-size: 1.05rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
  padding: 0.15rem 0;
}

.site-brand img {
  width: 176px;
  height: auto;
  display: block;
}

.site-logo-dark {
  display: none !important;
}

html[data-theme="dark"] .site-logo-light {
  display: none !important;
}

html[data-theme="dark"] .site-logo-dark {
  display: block !important;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.25rem 0 0.75rem;
  border-bottom: 1px solid #e5edf8;
}

.sidebar-user-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cbd5e1;
}

.sidebar-user-initials {
  display: inline-grid;
  place-items: center;
  background: #e0f2fe;
  color: #075985;
  font-weight: 600;
  letter-spacing: 0;
}

.min-w-0 {
  min-width: 0;
}

.home-hero {
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5edf8;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(25, 75, 154, 0.08);
}

.home-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 2rem;
  align-items: stretch;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-logo {
  width: min(100%, 680px);
  height: auto;
  margin: -1.25rem 0 0.75rem;
}

.home-hero-copy h1 {
  font-size: 2.7rem;
  line-height: 1.08;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
  color: #194b9a;
}

.home-hero-copy p {
  color: #475569;
  font-size: 1.1rem;
  max-width: 680px;
}

.home-hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-content: center;
}

.home-hero-card {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: 8px;
  padding: 0.9rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e5edf8;
  box-shadow: 0 10px 24px rgba(25, 75, 154, 0.06);
}

.home-hero-card strong,
.home-hero-card > div > span {
  display: block;
}

.home-hero-card strong {
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.home-hero-card > div > span {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.35;
}

.home-hero-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
}

.home-hero-icon svg {
  width: 27px;
  height: 27px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.home-hero-card.support .home-hero-icon {
  background: #e8f8ef;
  color: #2f73db;
}

.home-hero-card.against .home-hero-icon {
  background: #fff1f2;
  color: #f59ca3;
}

.home-hero-card.signature .home-hero-icon {
  background: #eef5ff;
  color: #2f73db;
}

.home-hero-card.survey .home-hero-icon {
  background: #ecfdf5;
  color: #70d7ad;
}

.home-hero-type {
  border-radius: 8px;
  padding: 1rem;
  color: #0f172a;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid #cbd5e1;
}

.home-hero-type.petition {
  background: #dbeafe;
  border-color: #93c5fd;
}

.home-hero-type.referendum {
  background: linear-gradient(90deg, #d1fae5 0%, #d1fae5 50%, #fee2e2 50%, #fee2e2 100%);
  border-color: #a7f3d0;
}

.home-hero-type.survey {
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.admin-home-dashboard {
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.8rem);
  padding: clamp(1.4rem, 2.4vw, 2.25rem);
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(25, 75, 154, 0.08);
}

.admin-dashboard-header,
.admin-pending-heading,
.admin-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.admin-dashboard-header h1 {
  margin: 0 0 0.45rem;
  color: #172033;
  font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.2rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-dashboard-header p {
  margin: 0;
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.5;
}

.admin-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1.15rem 1.2rem;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-stat-card.attention {
  background: #fff7ed;
  border-color: #fed7aa;
}

.admin-stat-card.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.admin-stat-card.muted {
  background: #f8fafc;
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 52px;
  border-radius: 8px;
  color: #2563eb;
  background: #eaf2ff;
  font-size: 1.35rem;
}

.admin-stat-card.attention .admin-stat-icon {
  color: #c2410c;
  background: #ffedd5;
}

.admin-stat-card.success .admin-stat-icon {
  color: #15803d;
  background: #dcfce7;
}

.admin-stat-value {
  color: #172033;
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 850;
}

.admin-stat-label {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.35;
}

.admin-pending-panel {
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  overflow: hidden;
}

.admin-pending-heading {
  padding: 1.15rem 1.25rem;
  background: #f8fbff;
  border-bottom: 1px solid #dbe5f0;
}

.admin-pending-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 800;
}

.admin-empty-state {
  padding: 1.35rem 1.25rem;
  color: #64748b;
}

.admin-pending-list {
  display: grid;
}

.admin-pending-item {
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
}

.admin-pending-item:last-child {
  border-bottom: none;
}

.admin-pending-main {
  min-width: 0;
}

.admin-pending-title {
  color: #172033;
  font-size: 1.04rem;
  line-height: 1.35;
  font-weight: 750;
}

.admin-pending-meta {
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.45;
  margin-top: 0.18rem;
}

.admin-pending-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.home-section {
  scroll-margin-top: 96px;
}

.home-section-header {
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.home-section-title {
  color: #172033;
  font-size: clamp(1.25rem, 0.75vw + 1rem, 1.62rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

.home-section-header .btn-sm {
  font-size: 0.98rem;
  padding: 0.52rem 0.85rem;
  white-space: nowrap;
}

.petition-card {
  border: 1px solid #e5edf8 !important;
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.petition-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.8rem 1.5rem rgba(15, 23, 42, 0.12) !important;
}

.petition-card .card-body {
  padding: 1.25rem;
}

.petition-card .card-body > .d-flex:first-child {
  gap: 0.75rem;
}

.petition-card .card-body > .d-flex:first-child .text-muted {
  color: #66758a !important;
  font-size: 0.98rem;
  line-height: 1.4;
}

.petition-card-image {
  height: 240px;
  object-fit: cover;
}

.petition-card-placeholder {
  height: 240px;
  background: #eef2ff;
}

.initiative-placeholder {
  color: #0f172a;
  font-weight: 600;
  letter-spacing: 0;
}

.initiative-placeholder.petition {
  background: #dbeafe;
}

.initiative-placeholder.referendum {
  background: linear-gradient(90deg, #d1fae5 0%, #d1fae5 50%, #fee2e2 50%, #fee2e2 100%);
}

.initiative-placeholder.survey {
  background: #e0e7ff;
}

.petition-title {
  color: #24324a;
  font-size: clamp(1.45rem, 0.8vw + 1.15rem, 1.82rem);
  line-height: 1.24;
  font-weight: bold;
  letter-spacing: 0;
  min-height: 4.5rem;
  margin-bottom: 0.75rem;
}

.petition-excerpt {
  color: #5f6c80 !important;
  font-size: 1.02rem;
  line-height: 1.6;
  min-height: 5rem;
}

.stretched-link-title {
  position: relative;
  z-index: 2;
}

.stretched-link-title:hover {
  color: #0ea5e9 !important;
}

.petition-progress {
  background: linear-gradient(90deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
}

.petition-card .progress {
  height: 0.55rem;
  border-radius: 999px;
  background-color: #e5eaf2;
}

.petition-card .btn-sm {
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 0.48rem 0.78rem;
}

.profile-detail-layout {
  align-items: flex-start;
}

.profile-detail-card,
.profile-initiatives-card {
  height: auto;
}

.profile-summary-image {
  width: 76px;
  height: 76px;
  object-fit: cover;
  flex: 0 0 auto;
}

.profile-summary-card h1 {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-detail-card .formatted-content {
  font-size: 0.95rem;
  line-height: 1.55;
}

.profile-initiatives-card .home-card-grid {
  align-items: stretch;
}

.image-drop-zone {
  border: 1px dashed #b8c7dd;
  border-radius: 8px;
  padding: 0.85rem;
  background: #f8fbff;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.image-drop-zone:focus,
.image-drop-zone.is-drag-over {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
  outline: none;
}

.image-drop-status {
  min-height: 1.2em;
}

.initiative-body-textarea {
  min-height: 420px;
}

html[data-theme="dark"] .image-drop-zone {
  background: #0f1d31;
  border-color: #38516f;
}

html[data-theme="dark"] .image-drop-zone:focus,
html[data-theme="dark"] .image-drop-zone.is-drag-over {
  background: #142844;
  border-color: #60a5fa;
}

.category-strip,
.initiative-type-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.category-chip,
.initiative-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #dbe2ea;
  background: #fff;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.85rem;
}

.category-chip.active,
.category-chip:hover,
.initiative-type-chip.active,
.initiative-type-chip:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #075985;
}

.initiative-type-chip {
  font-weight: 600;
}

.initiative-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.initiative-badge.petition {
  background: #dbeafe;
  color: #1d4ed8;
}

.initiative-badge.referendum {
  background: #dcfce7;
  color: #166534;
}

.initiative-badge.survey {
  background: #e0e7ff;
  color: #4338ca;
}

.initiative-metric {
  color: #0f766e;
  font-size: 1rem;
}

.referendum-progress-mini {
  height: 1.1rem;
}

.referendum-card-result,
.referendum-result-block {
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f8fbff;
  padding: 0.8rem;
}

.referendum-card-result {
  margin-top: auto;
}

.referendum-progress,
.referendum-progress-mini {
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf2;
}

.referendum-progress {
  height: 1.55rem;
}

.referendum-progress-mini {
  height: 1.25rem;
}

.referendum-progress-za,
.referendum-progress-protiv {
  min-width: 2.75rem;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.referendum-progress-za {
  background: #0ea5e9;
}

.referendum-progress-protiv {
  background: #dc2626;
}

.referendum-result-header,
.referendum-result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.referendum-result-header {
  margin-bottom: 0.7rem;
}

.referendum-result-header h3 {
  margin: 0;
  color: #172033;
  font-size: 1.16rem;
  line-height: 1.25;
  font-weight: 800;
}

.referendum-result-header span,
.referendum-result-meta {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.35;
}

.referendum-result-meta {
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.referendum-card-result .referendum-result-meta {
  font-size: 0.9rem;
}

.referendum-card-result.no-votes .referendum-progress-za,
.referendum-card-result.no-votes .referendum-progress-protiv,
.referendum-result-block.no-votes .referendum-progress-za,
.referendum-result-block.no-votes .referendum-progress-protiv {
  background: #94a3b8;
}

.petition-report-card .card-header h2 {
  color: #172033;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
}

.petition-report-card summary {
  display: inline-flex;
  cursor: pointer;
  list-style: none;
}

.petition-report-card summary::-webkit-details-marker {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.detail-hero-image {
  width: 100%;
  /*height: 280px;*/
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(2,6,23,0) 0%, rgba(2,6,23,0.82) 100%);
}

.petition-detail-image-wrap {
  display: flex;
  justify-content: center;
}

.petition-detail-inline-image {
  width: 100%;
  max-height: clamp(320px, 48vw, 620px);
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.petition-detail-main {
  color: #172033;
  font-size: 1.075rem;
  line-height: 1.72;
}

.petition-detail-main .card-body {
  padding: clamp(1.25rem, 2.4vw, 2.25rem);
}

.petition-detail-main .card-body > .d-flex.justify-content-between.align-items-start {
  flex-wrap: wrap;
}

.petition-detail-main h1.h1 {
  color: #1d2d4f;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.petition-detail-main h1.h1 + .small.text-muted {
  font-size: 0.98rem;
  line-height: 1.55;
}

.petition-detail-main h2.h5 {
  color: #0f172a;
  font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
}

.petition-detail-main h2.h5:first-of-type {
  margin-top: 2rem;
}

.petition-detail-main > .card-body > p {
  color: #1e293b;
  font-size: 1.08rem;
  line-height: 1.78;
  margin-bottom: 1.15rem;
}

.sign-submit-btn {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.initiative-gallery-thumb {
  display: block;
  cursor: pointer;
}

.initiative-gallery-thumb:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.initiative-gallery-modal-image {
  max-height: 78vh;
  object-fit: contain;
  background: #020617;
}

.petition-detail-main .progress .progress-bar:not(.referendum-progress-za):not(.referendum-progress-protiv) {
  background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
}

.petition-tabs .nav-link {
  font-size: 1.02rem;
  font-weight: 600;
  color: #334155;
  border: 1px solid transparent;
  padding: 0.85rem 1rem;
}

.petition-tabs .nav-link:hover {
  color: #0f172a;
  border-color: #e2e8f0 #e2e8f0 transparent;
}

.petition-tabs .nav-link.active {
  color: #0f172a;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-color: #dbeafe #dbeafe #ffffff;
}

.petition-activity-card {
  color: #172033;
  font-size: 1.04rem;
  line-height: 1.65;
}

.petition-activity-card .card-body {
  padding: clamp(1.15rem, 2vw, 1.7rem);
}

.petition-activity-card h3.h6 {
  color: #172033;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 600;
}

.petition-activity-card .form-label {
  color: #172033;
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.petition-activity-card .form-control,
.petition-activity-card .form-select {
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.5;
}

.petition-activity-card textarea.form-control {
  min-height: 132px;
}

.petition-activity-card .form-text,
.petition-activity-card .small {
  font-size: 0.94rem;
  line-height: 1.55;
}

.petition-activity-card .btn-sm {
  font-size: 0.95rem;
  padding: 0.48rem 0.8rem;
}

.petition-sign-card {
  color: #172033;
  font-size: 1.02rem;
  line-height: 1.58;
}

.petition-sign-card .card-header {
  padding: 1.2rem 1.35rem;
}

.petition-sign-card .card-header h2 {
  color: #172033;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

.petition-sign-card .card-body {
  padding: 1.25rem 1.35rem;
}

.petition-sign-card .form-label {
  color: #172033;
  font-size: 0.98rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.petition-sign-card .form-control,
.petition-sign-card .form-select {
  min-height: 46px;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.62rem 0.85rem;
}

.petition-sign-card textarea.form-control {
  min-height: 88px;
}

.petition-sign-card .small,
.petition-sign-card .form-text,
.petition-sign-card .form-check-label,
.petition-sign-card .alert.small {
  font-size: 0.94rem;
  line-height: 1.55;
}

.petition-sign-card .form-check {
  padding-left: 1.75rem;
}

.petition-sign-card .form-check-input {
  width: 1.12rem;
  height: 1.12rem;
  margin-left: -1.75rem;
}

.petition-sign-card .btn-sm {
  font-size: 0.94rem;
  padding: 0.45rem 0.75rem;
}

.stat-card {
  background: #fff;
}

.stat-card-primary {
  border-color: #93c5fd !important;
  background: #eff6ff;
}

.stat-card-purple {
  border-color: #c4b5fd !important;
  background: #f5f3ff;
}

.stat-card-success {
  border-color: #86efac !important;
  background: #f0fdf4;
}

.formatted-content {
  overflow-wrap: anywhere;
}

.petition-detail-main .formatted-content {
  color: #1e293b;
  font-size: 1.08rem;
  line-height: 1.78;
}

.petition-detail-main .formatted-content h2 {
  color: #0f172a;
  font-size: clamp(1.45rem, 1vw + 1.05rem, 1.9rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0;
  margin: 2rem 0 0.8rem;
}

.petition-detail-main .formatted-content h3 {
  color: #172033;
  font-size: clamp(1.25rem, 0.65vw + 1rem, 1.55rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  margin: 1.45rem 0 0.6rem;
}

.petition-detail-main .formatted-content p {
  margin: 0 0 0.75rem;
  line-height: 1.78;
}

.petition-detail-main .formatted-content ul,
.petition-detail-main .formatted-content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.55rem;
}

.petition-detail-main .formatted-content li {
  margin-bottom: 0.45rem;
  line-height: 1.72;
}

.formatted-content h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1rem 0 0.45rem;
}

.formatted-content h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0.85rem 0 0.4rem;
}

.formatted-content p {
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

.formatted-content ul,
.formatted-content ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.formatted-content li {
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.update-post {
  background: #fff;
  color: #172033;
  font-size: 1.02rem;
  line-height: 1.68;
  padding: 1.25rem !important;
}

.update-post-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.update-post .formatted-content {
  font-size: 1.03rem;
  line-height: 1.72;
}

.update-post .news-title {
  color: #172033;
  font-size: clamp(1.6rem, 1vw + 1.2rem, 2rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
}

.update-post .formatted-content h2 {
  color: #172033;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 650;
  margin: 1.15rem 0 0.55rem;
}

.update-post .formatted-content h3 {
  color: #26344d;
  font-size: 1.16rem;
  line-height: 1.35;
  font-weight: 650;
  margin: 1rem 0 0.45rem;
}

.update-post summary {
  display: inline-flex;
  cursor: pointer;
}

.update-post summary::marker {
  content: "";
}

.profile-avatar-sm {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cbd5e1;
}

.profile-avatar-initials {
  display: inline-grid;
  place-items: center;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
}

.captcha-image {
  width: 210px;
  max-width: 100%;
  min-height: 70px;
}

.captcha-image svg {
  display: block;
  width: 100%;
  height: auto;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@media (max-width: 767.98px) {
  .admin-dashboard-header,
  .admin-pending-heading,
  .admin-pending-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard-header .btn,
  .admin-pending-heading .btn,
  .admin-pending-actions {
    width: 100%;
  }

  .admin-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .admin-pending-actions .btn {
    flex: 1 1 0;
  }

  .home-section-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .home-section-title {
    font-size: 1.38rem;
  }

  .home-section-header .btn-sm {
    width: 100%;
  }

  .petition-card-image,
  .petition-card-placeholder {
    height: 220px;
  }

  .petition-title {
    min-height: 0;
  }

  .petition-excerpt {
    min-height: 0;
  }

  .petition-detail-main .card-body {
    padding: 1rem;
  }

  .petition-detail-main h1.h1 {
    font-size: 1.75rem;
    line-height: 1.16;
  }

  .petition-detail-main h2.h5 {
    font-size: 1.28rem;
    margin-top: 1.55rem;
  }

  .petition-detail-main,
  .petition-detail-main > .card-body > p,
  .petition-detail-main .formatted-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .petition-detail-inline-image {
    max-height: 380px;
  }

  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-hero-content {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .home-hero-panel {
    grid-template-columns: 1fr;
  }

  .home-hero-copy h1 {
    font-size: 2rem;
  }

  .site-brand img {
    width: 148px;
  }
}

.content-page {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.content-page h1,
.content-page h2,
.content-page h3 {
  color: #0f172a;
  margin-top: 1.4rem;
  margin-bottom: 0.75rem;
}

.content-page h1:first-child,
.content-page h2:first-child,
.content-page h3:first-child {
  margin-top: 0;
}

.content-page p,
.content-page li {
  color: #475569;
  line-height: 1.75;
}

.content-page img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#htmlEditor .ql-editor {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

#htmlEditor .ql-editor h1,
#htmlEditor .ql-editor h2,
#htmlEditor .ql-editor h3 {
  color: #0f172a;
  margin-top: 1.4rem;
  margin-bottom: 0.75rem;
}

#htmlEditor .ql-editor h1:first-child,
#htmlEditor .ql-editor h2:first-child,
#htmlEditor .ql-editor h3:first-child {
  margin-top: 0;
}

#htmlEditor .ql-editor p,
#htmlEditor .ql-editor li {
  color: #475569;
  line-height: 1.75;
}

#htmlEditor .ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-html-editor {
  min-height: 440px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  outline: none;
  overflow: auto;
}

.content-html-editor:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.content-html-editor img {
  max-width: 100%;
  height: auto;
}

.site-footer {
  background: radial-gradient(circle at top, #12213b 0%, #0d172a 45%, #081221 100%);
  color: #ffffff;
  border-top: 1px solid #20324d;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 1.25rem;
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(200px, 0.9fr) minmax(220px, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.site-footer-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  min-height: 100%;
  border-right: 1px solid rgba(91, 122, 167, 0.4);
  padding-right: clamp(1.25rem, 2.2vw, 2rem);
}

.site-footer-logo-col img {
  display: block;
  width: min(240px, 100%);
  height: auto;
}

.site-footer-brand-text {
  margin: 0;
  color: #d5e0f2;
  line-height: 1.7;
  font-size: 1.08rem;
  max-width: 32ch;
}

.site-footer-platform,
.site-footer-contact {
  min-height: 100%;
  padding-inline: clamp(0.6rem, 1.8vw, 1.25rem);
  border-right: 1px solid rgba(91, 122, 167, 0.4);
}

.site-footer-contact {
  border-right: none;
}

.site-footer-platform h2,
.site-footer-contact h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.site-footer-divider {
  width: 30px;
  height: 3px;
  border-radius: 100px;
  background: #3d8cff;
  margin: 0.8rem 0 1.35rem;
}

.site-footer-contact-html p {
  margin: 0 0 0.75rem;
  color: #dbe5f7;
  line-height: 1.7;
  font-size: 1.02rem;
}

.site-footer-contact-html strong {
  color: #ffffff;
}

.site-footer-contact-html a {
  color: #5fa1ff;
  text-decoration: none;
}

.site-footer-contact-html a:hover {
  color: #8bbcfd;
  text-decoration: underline;
}

.site-footer-menu {
  display: grid;
  gap: 0.85rem;
}

.site-footer-menu a {
  display: inline-flex;
  align-items: center;
  color: #dbe7ff;
  text-decoration: none;
  font-size: 1.08rem;
  width: fit-content;
}

.site-footer-menu a i {
  margin-right: 0.55rem;
  color: #3d8cff;
  font-size: 0.8rem;
}

.site-footer-menu a:hover {
  color: #5fa1ff;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #5fa1ff;
  background: rgba(16, 31, 55, 0.72);
  border-radius: 10px;
  border: 1px solid rgba(91, 122, 167, 0.45);
  text-decoration: none;
  font-size: 1.18rem;
  transition: all 0.2s ease;
}

.footer-socials a:hover {
  color: #ffffff;
  background: rgba(39, 79, 133, 0.75);
  border-color: #5fa1ff;
  transform: translateY(-1px);
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: #dbe5f7;
  font-size: 1rem;
  font-weight: 600;
  margin-top: clamp(1.75rem, 4vw, 2.8rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(91, 122, 167, 0.4);
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .admin-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .site-footer-logo-col,
  .site-footer-platform,
  .site-footer-contact {
    border-right: none;
    padding-right: 0;
    padding-left: 0;
    border-bottom: 1px solid rgba(91, 122, 167, 0.32);
    padding-bottom: 1.4rem;
    margin-bottom: 0.2rem;
  }

  .site-footer-logo-col,
  .site-footer-bottom {
    justify-self: center;
    text-align: center;
  }

  .site-footer-logo-col {
    align-items: center;
  }

  .site-footer-menu,
  .footer-socials {
    justify-content: center;
  }
}

@media (min-width: 2000px) {
  .site-footer .site-footer-container {
    max-width: min(92vw, 1880px) !important;
  }

  .site-footer {
    padding-top: clamp(3.5rem, 4vw, 5rem);
  }

  .site-footer-main {
    grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 1fr) minmax(320px, 1fr);
    gap: clamp(2rem, 3vw, 3rem);
  }

  .site-footer-logo-col img {
    width: min(310px, 100%);
  }

  .site-footer-brand-text {
    font-size: 1.28rem;
    max-width: 38ch;
  }

  .site-footer-platform h2,
  .site-footer-contact h2 {
    font-size: 1.8rem;
  }

  .site-footer-menu a {
    font-size: 1.3rem;
  }

  .site-footer-contact-html p {
    font-size: 1.2rem;
  }

  .footer-socials a {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
  }

  .site-footer-bottom {
    font-size: 1.1rem;
  }
}

@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: min(92vw, 1560px) !important;
  }

  .site-footer-container {
    max-width: min(92vw, 1560px) !important;
  }
}

@media (min-width: 2000px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: min(92vw, 1740px) !important;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #07111f;
  color: #e5eefb;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .card,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .content-page,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .update-post,
html[data-theme="dark"] .home-hero,
html[data-theme="dark"] .home-hero-card,
html[data-theme="dark"] .site-search-panel {
  background-color: #0f1d2e !important;
  color: #e5eefb;
  border-color: #263a55 !important;
}

html[data-theme="dark"] .navbar,
html[data-theme="dark"] footer {
  background: #0b1626 !important;
  border-color: #263a55 !important;
}

html[data-theme="dark"] .navbar-light .navbar-nav .nav-link,
html[data-theme="dark"] .navbar-light .navbar-toggler,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .dropdown-item,
html[data-theme="dark"] footer,
html[data-theme="dark"] footer a {
  color: #dbeafe;
}

html[data-theme="dark"] .navbar-light .navbar-nav .nav-link:hover,
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .dropdown-item:hover {
  color: #ffffff;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .home-hero-copy p,
html[data-theme="dark"] .home-hero-card > div > span,
html[data-theme="dark"] .content-page p,
html[data-theme="dark"] .content-page li {
  color: #a9bdd6 !important;
}

html[data-theme="dark"] .home-hero-copy h1,
html[data-theme="dark"] .content-page h1,
html[data-theme="dark"] .content-page h2,
html[data-theme="dark"] .content-page h3,
html[data-theme="dark"] .admin-dashboard-header h1,
html[data-theme="dark"] .admin-stat-value,
html[data-theme="dark"] .admin-pending-heading h2,
html[data-theme="dark"] .admin-pending-title,
html[data-theme="dark"] .home-section-title,
html[data-theme="dark"] .petition-title,
html[data-theme="dark"] .petition-activity-card h3.h6,
html[data-theme="dark"] .update-post .news-title,
html[data-theme="dark"] .petition-activity-card .form-label,
html[data-theme="dark"] .petition-sign-card .card-header h2,
html[data-theme="dark"] .petition-sign-card .form-label,
html[data-theme="dark"] .petition-detail-main h1.h1,
html[data-theme="dark"] .petition-detail-main h2.h5,
html[data-theme="dark"] .petition-detail-main .formatted-content h2,
html[data-theme="dark"] .petition-detail-main .formatted-content h3,
html[data-theme="dark"] .site-search-label,
html[data-theme="dark"] .petition-tabs .nav-link.active,
html[data-theme="dark"] .initiative-placeholder {
  color: #f8fbff;
}

html[data-theme="dark"] .petition-detail-main,
html[data-theme="dark"] .petition-detail-main > .card-body > p,
html[data-theme="dark"] .petition-detail-main .formatted-content,
html[data-theme="dark"] .petition-activity-card,
html[data-theme="dark"] .petition-sign-card,
html[data-theme="dark"] .update-post {
  color: #dbe7f5;
}

html[data-theme="dark"] .petition-excerpt,
html[data-theme="dark"] .petition-card .card-body > .d-flex:first-child .text-muted {
  color: #a9bdd6 !important;
}

html[data-theme="dark"] .admin-home-dashboard,
html[data-theme="dark"] .admin-pending-panel,
html[data-theme="dark"] .admin-pending-item {
  background: #0f1d2e;
  border-color: #263a55;
}

html[data-theme="dark"] .admin-dashboard-header p,
html[data-theme="dark"] .admin-stat-label,
html[data-theme="dark"] .admin-pending-meta,
html[data-theme="dark"] .admin-empty-state {
  color: #a9bdd6;
}

html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .admin-pending-heading {
  background: #0b1626;
  border-color: #263a55;
}

html[data-theme="dark"] .admin-stat-card.attention {
  background: #2a1a0e;
  border-color: #7c3d12;
}

html[data-theme="dark"] .admin-stat-card.success {
  background: #102716;
  border-color: #1f6a35;
}

html[data-theme="dark"] .admin-pending-item {
  border-bottom-color: #263a55;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .content-html-editor {
  background-color: #081625;
  color: #f8fbff;
  border-color: #35506f;
}

html[data-theme="dark"] .form-control::placeholder {
  color: #8ea7c4;
}

html[data-theme="dark"] .btn-outline-secondary {
  color: #dbeafe;
  border-color: #597392;
}

html[data-theme="dark"] .btn-outline-secondary:hover {
  color: #07111f;
  background: #dbeafe;
  border-color: #dbeafe;
}

html[data-theme="dark"] .category-chip,
html[data-theme="dark"] .initiative-type-chip,
html[data-theme="dark"] .page-link {
  background: #0b1626;
  color: #dbeafe;
  border-color: #35506f;
}

html[data-theme="dark"] .category-chip.active,
html[data-theme="dark"] .category-chip:hover,
html[data-theme="dark"] .initiative-type-chip.active,
html[data-theme="dark"] .initiative-type-chip:hover {
  background: #12385f;
  border-color: #38bdf8;
  color: #ffffff;
}

html[data-theme="dark"] .site-search-overlay {
  background: rgba(2, 6, 23, 0.74);
}

html[data-theme="dark"] .sidebar-user-card {
  border-color: #263a55;
}

html[data-theme="dark"] #htmlEditor .ql-editor {
  background-color: #0f1d2e;
  color: #e5eefb;
  border-color: #263a55;
}

html[data-theme="dark"] #htmlEditor .ql-editor h1,
html[data-theme="dark"] #htmlEditor .ql-editor h2,
html[data-theme="dark"] #htmlEditor .ql-editor h3 {
  color: #f8fbff;
}

html[data-theme="dark"] #htmlEditor .ql-editor p,
html[data-theme="dark"] #htmlEditor .ql-editor li {
  color: #a9bdd6;
}

html[data-theme="dark"] .sidebar-user-initials {
  background: #0b5f91;
  color: #f8fbff;
  border-color: #38bdf8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .petition-card-placeholder,
html[data-theme="dark"] .initiative-placeholder.petition,
html[data-theme="dark"] .initiative-placeholder.survey {
  background: linear-gradient(135deg, #172a45 0%, #213756 100%);
  color: #dbeafe;
}

html[data-theme="dark"] .initiative-placeholder.referendum {
  background: linear-gradient(90deg, #123626 0%, #123626 50%, #3c1820 50%, #3c1820 100%);
  color: #e5eefb;
}

html[data-theme="dark"] .initiative-placeholder span {
  color: #f8fbff;
  text-shadow: none;
}

.under-construction-banner {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #7c2d12;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.85rem 0;
}

.under-construction-banner .container {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.under-construction-banner i {
  color: #ea580c;
  font-size: 1.35rem;
}

html[data-theme="dark"] .under-construction-banner {
  background: #3b220d;
  border-color: #9a3412;
  color: #fed7aa;
}

html[data-theme="dark"] .under-construction-banner i {
  color: #fb923c;
}

.settings-search-wrap {
  width: min(100%, 380px);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1041;
    padding: 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e5edf8;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  }

  html[data-theme="dark"] .navbar-collapse {
    background: #0b1626;
    border-color: #263a55;
  }

  .navbar-collapse .d-flex {
    align-items: stretch !important;
    flex-direction: column;
  }

  .btn-header-action {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .site-search-panel {
    margin-top: 2.5rem;
  }

  .site-search-form {
    padding-right: 0;
    padding-top: 3.2rem;
  }

  .site-search-input-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-search-input-row .btn {
    grid-column: 1 / -1;
    min-height: 46px;
  }
}
