.vesr-hero {
  background: linear-gradient(135deg, #063b35, #08745f);
  color: #fff;
  border-radius: 24px;
  padding: 48px 34px;
  margin: 24px 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}

.vesr-hero h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 10px 0;
  color: #fff;
}

.vesr-hero p {
  font-size: 18px;
  max-width: 900px;
  color: #f4fffb;
}

.vesr-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  opacity: .9;
}

.vesr-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.vesr-btn {
  background: #f6b33d;
  color: #10231f !important;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-block;
  box-shadow: 0 10px 22px rgba(246, 179, 61, .25);
}

.vesr-btn:hover {
  background: #204329;
  color: #fff !important;
}

.vesr-btn-light {
  background: #fff;
}

.vesr-statusbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.vesr-grid,
.vesr-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}

.vesr-country-grid {
  grid-template-columns: repeat(3, 1fr);
}

.vesr-card,
.vesr-panel,
.vesr-kpi {
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.vesr-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vesr-iso {
  font-weight: 900;
  color: #08745f;
}

.vesr-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf7f3;
  font-size: 12px;
  text-transform: capitalize;
}

.vesr-status-active {
  background: #dcfce7;
}

.vesr-status-tracking,
.vesr-status-standby {
  background: #fef9c3;
}

.vesr-status-archive {
  background: #e5e7eb;
}

.vesr-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vesr-kpi span {
  display: block;
  color: #557069;
  font-size: 13px;
}

.vesr-kpi strong {
  font-size: 30px;
  color: #063b35;
}

.vesr-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.vesr-tabs span {
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf7f3;
  color: #063b35;
  font-weight: 800;
}

.vesr-feed,
.vesr-report {
  border-top: 1px solid #edf2ef;
  padding: 14px 0;
}

.vesr-feed:first-of-type,
.vesr-report:first-of-type {
  border-top: 0;
}

.vesr-feed span,
.vesr-muted {
  color: #64756f;
  font-size: 14px;
}

.vesr-feed h3,
.vesr-report h3 {
  margin: 6px 0;
}

.vesr-severity-warning {
  border-left: 4px solid #f6b33d;
  padding-left: 12px;
}

.vesr-severity-critical {
  border-left: 4px solid #d93025;
  padding-left: 12px;
}

.vesr-pill {
  background: #edf7f3;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  margin-right: 6px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vesr-sev-critical {
  background: #fee2e2;
  color: #991b1b;
}

.vesr-sev-warning {
  background: #fef3c7;
  color: #92400e;
}

.vesr-sev-normal {
  background: #dcfce7;
  color: #166534;
}

.vesr-status-verified {
  background: rgba(47, 125, 50, 0.14);
  color: #204329;
}

.vesr-status-pending {
  background: rgba(242, 154, 19, 0.18);
  color: #6b4300;
}

.vesr-map-box {
  min-height: 280px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, #dcfce7 0 12%, transparent 13%),
    radial-gradient(circle at 70% 45%, #fef9c3 0 10%, transparent 11%),
    radial-gradient(circle at 48% 70%, #fee2e2 0 8%, transparent 9%),
    #f6fbf9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vesr-bubble {
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
}

.vesr-green {
  background: #dcfce7;
}

.vesr-yellow {
  background: #fef9c3;
}

.vesr-red {
  background: #fee2e2;
}

.vesr-kobo iframe {
  border: 1px solid #e6eee9;
  border-radius: 16px;
  background: #fff;
}

.vesr-card code {
  display: none !important;
}

/* EHORN VESR - Smart Tanzania Situation Messages Dashboard */

.vesr-report-summary-panel {
  overflow: hidden;
}

.vesr-smart-dashboard {
  display: grid;
  gap: 24px;
}

.vesr-smart-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 20%, rgba(246, 179, 61, .18), transparent 34%),
    linear-gradient(135deg, #fffdf8 0%, #ffffff 100%);
  border: 1px solid rgba(32, 67, 41, .10);
  box-shadow: 0 16px 45px rgba(32, 67, 41, .08);
}

.vesr-smart-hero h2 {
  margin: 0 0 10px;
  color: #063b35;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.vesr-smart-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #063b35;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(6, 59, 53, .18);
}

.vesr-smart-live span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f6b33d;
  box-shadow: 0 0 0 6px rgba(246, 179, 61, .18);
}

.vesr-smart-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vesr-smart-kpi {
  background: linear-gradient(135deg, #063b35, #08745f);
  color: #fff;
  padding: 22px;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(6, 59, 53, .18);
}

.vesr-smart-kpi:nth-child(even) {
  background: linear-gradient(135deg, #8b5e34, #b7792f);
}

.vesr-smart-kpi span {
  display: block;
  opacity: .92;
  font-weight: 800;
  font-size: 13px;
}

.vesr-smart-kpi strong {
  display: block;
  font-size: 40px;
  line-height: 1;
  margin-top: 10px;
}

.vesr-source-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.vesr-source-strip div {
  background: #fff;
  border: 1px solid rgba(32, 67, 41, .10);
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(32, 67, 41, .07);
}

.vesr-source-strip b {
  display: block;
  color: #063b35;
  font-size: 24px;
  line-height: 1;
}

.vesr-source-strip span {
  display: block;
  margin-top: 6px;
  color: #6a5b49;
  font-size: 12px;
  font-weight: 900;
}

.vesr-smart-toolbar {
  display: grid;
  grid-template-columns: 1fr 170px 160px 160px;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(32, 67, 41, .10);
  box-shadow: 0 12px 28px rgba(32, 67, 41, .08);
}

.vesr-smart-toolbar input,
.vesr-smart-toolbar select {
  width: 100%;
  border: 1px solid rgba(32, 67, 41, .18);
  border-radius: 999px;
  padding: 13px 16px;
  font-size: 14px;
  background: #fff;
  color: #10231f;
}

.vesr-smart-toolbar input:focus,
.vesr-smart-toolbar select:focus {
  outline: none;
  border-color: #08745f;
  box-shadow: 0 0 0 4px rgba(8, 116, 95, .12);
}

.vesr-smart-board {
  background: #f8f4ed;
  border-radius: 30px;
  padding: 20px;
  border: 1px solid rgba(32, 67, 41, .10);
}

.vesr-smart-board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.vesr-smart-board-head h3 {
  margin: 0;
  color: #063b35;
  font-size: 25px;
}

.vesr-smart-board-head p {
  margin: 4px 0 0;
  color: #68786d;
}

.vesr-smart-board-head > span {
  color: #8b5e34;
  font-weight: 900;
  white-space: nowrap;
}

.vesr-smart-feed {
  max-height: 780px;
  overflow-y: auto;
  padding-right: 10px;
  display: grid;
  gap: 18px;
}

.vesr-smart-feed::-webkit-scrollbar {
  width: 10px;
}

.vesr-smart-feed::-webkit-scrollbar-track {
  background: rgba(32, 67, 41, .08);
  border-radius: 999px;
}

.vesr-smart-feed::-webkit-scrollbar-thumb {
  background: #063b35;
  border-radius: 999px;
}

.vesr-smart-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 220px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(32, 67, 41, .10);
  box-shadow: 0 14px 34px rgba(32, 67, 41, .09);
  transition: transform .18s ease, box-shadow .18s ease;
}

.vesr-smart-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(32, 67, 41, .14);
}

.vesr-smart-media {
  background: #efe7d9;
  min-height: 220px;
}

.vesr-smart-media a,
.vesr-smart-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.vesr-smart-media img {
  object-fit: cover;
}

.vesr-smart-media-placeholder {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(246, 179, 61, .18), transparent 38%),
    linear-gradient(135deg, rgba(6, 59, 53, .08), rgba(139, 94, 52, .12));
  color: #063b35;
  text-align: center;
  padding: 20px;
}

.vesr-smart-media-placeholder strong {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #063b35;
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.vesr-smart-media-placeholder span {
  font-weight: 900;
}

.vesr-smart-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vesr-smart-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.vesr-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: #f4efe6;
  color: #063b35;
}

.vesr-channel-facebook {
  background: rgba(24, 119, 242, .11);
  color: #14529f;
}

.vesr-channel-twitter {
  background: rgba(15, 20, 25, .09);
  color: #111;
}

.vesr-channel-instagram {
  background: rgba(193, 53, 132, .11);
  color: #8d2563;
}

.vesr-channel-tiktok {
  background: rgba(0, 0, 0, .08);
  color: #111;
}

.vesr-channel-linkedin {
  background: rgba(10, 102, 194, .11);
  color: #064b8f;
}

.vesr-channel-youtube {
  background: rgba(255, 0, 0, .10);
  color: #b00000;
}

.vesr-channel-webpage {
  background: rgba(139, 94, 52, .14);
  color: #5d3f22;
}

.vesr-channel-media {
  background: rgba(246, 179, 61, .20);
  color: #6b4300;
}

.vesr-channel-field {
  background: rgba(6, 59, 53, .10);
  color: #063b35;
}

.vesr-smart-card h3 {
  color: #063b35;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.vesr-smart-card p {
  color: #52635a;
  line-height: 1.62;
  margin: 0;
}

.vesr-smart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: #8b5e34;
  font-size: 13px;
  font-weight: 900;
}

.vesr-source-link {
  align-self: flex-start;
  margin-top: 14px;
  display: inline-flex;
  background: #063b35;
  color: #fff !important;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.vesr-source-link:hover {
  background: #f6b33d;
  color: #10231f !important;
}

.vesr-report-summary-list {
  display: grid;
  gap: 16px;
}

.vesr-report-summary-list .vesr-smart-card {
  grid-template-columns: 145px 1fr;
  min-height: 150px;
}

.vesr-report-summary-list .vesr-smart-media,
.vesr-report-summary-list .vesr-smart-media-placeholder {
  min-height: 150px;
}

.vesr-report-summary-list .vesr-smart-card-body {
  padding: 16px;
}

.vesr-report-summary-list .vesr-smart-card h3 {
  font-size: 18px;
}

.vesr-report-action {
  margin-top: 22px;
  text-align: center;
}

.vesr-report-button {
  border-radius: 999px;
  padding: 14px 22px;
}

/* Older report-card compatibility */
.vesr-modern-report-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(32, 67, 41, 0.1);
  box-shadow: 0 12px 30px rgba(32, 67, 41, 0.08);
}

.vesr-report-media {
  display: block;
  height: 190px;
  overflow: hidden;
  background: #f6f1e8;
}

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

.vesr-report-content {
  padding: 18px;
}

.vesr-report-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.vesr-report-attachment {
  display: block;
  padding: 16px;
  background: #fff7e8;
  color: #204329;
  font-weight: 900;
  text-decoration: none;
}

.vesr-report-dashboard-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 26px;
}

.vesr-report-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1100px) {
  .vesr-source-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .vesr-statusbar,
  .vesr-grid,
  .vesr-two-col,
  .vesr-country-grid {
    grid-template-columns: 1fr;
  }

  .vesr-hero h1 {
    font-size: 32px;
  }

  .vesr-kpis {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 800px) {
  .vesr-smart-hero,
  .vesr-smart-board-head {
    flex-direction: column;
  }

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

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

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

  .vesr-smart-feed {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .vesr-smart-card,
  .vesr-report-summary-list .vesr-smart-card {
    grid-template-columns: 1fr;
  }

  .vesr-smart-media,
  .vesr-report-summary-list .vesr-smart-media {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .vesr-smart-kpis {
    grid-template-columns: 1fr;
  }

  .vesr-smart-hero {
    padding: 24px;
  }

  .vesr-smart-kpi strong {
    font-size: 34px;
  }
}

/* Link preview label for cards using webpage/social preview images */
.vesr-smart-media {
  position: relative;
}

.vesr-preview-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(6, 59, 53, .92);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
