:root {
  --he-font: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --he-green: #008329;
  --he-green-dark: #006c22;
  --he-text: #111318;
  --he-muted: #667085;
  --he-muted-soft: #8a93a6;
  --he-soft: #f6f8f6;
  --he-line: #e6e9ee;
  --he-card: #ffffff;
  --he-radius: 22px;
}

.hevd-wrap,
.hevd-wrap * {
  box-sizing: border-box;
}

.hevd-wrap {
  color: var(--he-text);
  font-family: var(--he-font);
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
}

.hevd-header h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hevd-filters {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: clamp(12px, 2vw, 16px);
  border: 1px solid var(--he-line);
  border-radius: var(--he-radius);
  background: rgba(255, 255, 255, 0.86);
}

.hevd-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.hevd-search-row label,
.hevd-filter-row span {
  display: block;
  margin: 0 0 6px;
  color: var(--he-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hevd-search-row label {
  grid-column: 1 / -1;
}

.hevd-filters input,
.hevd-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--he-line);
  border-radius: 999px;
  background: #fff;
  color: var(--he-text);
  padding: 0 15px;
  font-family: var(--he-font);
  font-size: 0.95rem;
  outline: none;
}

.hevd-filters input:focus,
.hevd-filters select:focus,
.hevd-filters a:focus-visible,
.hevd-filters button:focus-visible,
.hevd-btn:focus-visible,
.hevd-pagination a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--he-green) 22%, transparent);
  outline-offset: 2px;
  border-color: var(--he-green);
}

.hevd-filters button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--he-green);
  color: #fff;
  padding: 0 20px;
  font-family: var(--he-font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.hevd-filter-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hevd-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hevd-quick a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--he-line);
  border-radius: 999px;
  color: var(--he-text);
  background: #fff;
  text-decoration: none;
  padding: 0 12px;
  font-size: 0.9rem;
}

.hevd-quick a.is-active,
.hevd-quick .hevd-reset:hover,
.hevd-quick a:hover {
  border-color: color-mix(in srgb, var(--he-green) 30%, var(--he-line));
  color: var(--he-green-dark);
}

.hevd-status {
  margin: 6px 0 14px;
  color: var(--he-muted);
  font-size: 0.98rem;
}

.hevd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.hevd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 264px;
  border: 1px solid var(--he-line);
  border-radius: var(--he-radius);
  background: var(--he-card);
  padding: 12px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.032);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hevd-card:hover,
.hevd-card:focus-within {
  border-color: color-mix(in srgb, var(--he-green) 18%, var(--he-line));
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.055);
  transform: translateY(-1px);
}

.hevd-card-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  margin-bottom: 9px;
  padding-right: 0;
}

.hevd-datebox {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid color-mix(in srgb, var(--he-green) 26%, var(--he-line));
  border-radius: 17px;
  background: #fff;
  color: var(--he-green);
}

.hevd-datebox time,
.hevd-datebox > span {
  display: grid;
  place-items: center;
}

.hevd-day {
  display: block;
  font-size: 1.78rem;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hevd-month {
  display: block;
  margin-top: 6px;
  color: var(--he-text);
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hevd-head-main {
  min-width: 0;
}

.hevd-meta-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin-bottom: 6px;
}

.hevd-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--he-green) 8%, #fff);
  color: var(--he-green-dark);
  padding: 4px 9px;
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}


.hevd-time {
  color: #596378;
  font-size: 0.91rem;
  line-height: 1.35;
  font-weight: 650;
}

.hevd-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.hevd-title {
  margin: 0 0 6px;
  font-size: clamp(1.02rem, 1.13vw, 1.15rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.hevd-title a {
  color: var(--he-text);
  text-decoration: none;
}

.hevd-title a:hover {
  color: var(--he-green-dark);
  text-decoration: none;
}

.hevd-location {
  margin: 0 0 7px;
  color: var(--he-text);
  font-size: 0.91rem;
  line-height: 1.32;
  font-weight: 700;
}

.hevd-excerpt {
  margin: 0 0 8px;
  color: #4b5565;
  font-size: 0.89rem;
  line-height: 1.38;
}

.hevd-facts {
  margin: 6px 0 0;
  padding: 0;
}

.hevd-facts div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.hevd-facts dt {
  color: var(--he-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hevd-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--he-text);
  font-size: 0.89rem;
  font-weight: 700;
  line-height: 1.3;
}

.hevd-checked-note {
  display: none;
}

.hevd-inline-filter {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--he-green) 34%, transparent);
  border-radius: 8px;
}

.hevd-inline-filter:hover,
.hevd-inline-filter:focus-visible {
  color: var(--he-green-dark);
  text-decoration: none;
}

.hevd-time .hevd-inline-filter {
  font-weight: 750;
}

.hevd-location .hevd-inline-filter,
.hevd-facts .hevd-inline-filter {
  font-weight: 750;
}


.hevd-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
}

.hevd-actions .hevd-btn:only-child {
  grid-column: 1 / -1;
}

.hevd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--he-green);
  border-radius: 999px;
  background: #fff;
  color: var(--he-green-dark);
  padding: 0 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.hevd-btn-main,
.hevd-btn:hover {
  background: var(--he-green);
  color: #fff;
}

.hevd-btn:hover {
  transform: translateY(-1px);
}

.hevd-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--he-line);
  border-radius: var(--he-radius);
  background: #fff;
  color: var(--he-muted);
}

.hevd-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
}

.hevd-pagination a,
.hevd-pagination span,
.hevd-pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--he-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.hevd-pagination a.hevd-load-more {
  min-width: min(100%, 320px);
  border: 1px solid var(--he-green);
  background: var(--he-green);
  color: #fff;
  font-weight: 700;
}

.hevd-pagination.is-loading a.hevd-load-more {
  opacity: 0.65;
  pointer-events: none;
}

.hevd-pagination .is-disabled {
  background: var(--he-soft);
}

@media (max-width: 1100px) {
  .hevd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hevd-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hevd-filters { border-radius: 18px; padding: 12px; }
  .hevd-search-row { grid-template-columns: 1fr; }
  .hevd-filter-row { grid-template-columns: 1fr; }
  .hevd-grid { grid-template-columns: 1fr; gap: 12px; }
  .hevd-card { min-height: 0; padding: 12px; border-radius: 19px; }
  .hevd-card-head { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }
  .hevd-datebox { width: 60px; height: 60px; border-radius: 15px; }
  .hevd-day { font-size: 1.62rem; }
  .hevd-month { font-size: 0.66rem; margin-top: 5px; }
  .hevd-meta-top { gap: 6px; }
  .hevd-category { min-height: 23px; padding: 4px 8px; font-size: 0.7rem; }
  .hevd-title { font-size: 1.06rem; }
  .hevd-excerpt { font-size: 0.9rem; }
  .hevd-facts div { grid-template-columns: 1fr; gap: 2px; }
  .hevd-pagination { flex-direction: column; }
  .hevd-pagination a.hevd-load-more { width: 100%; }
}

@media (max-width: 420px) {
  .hevd-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hevd-card,
  .hevd-btn {
    transition: none;
  }
  .hevd-card:hover,
  .hevd-btn:hover {
    transform: none;
  }
}

/* Single event detail view */
.hevd-single-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.hevd-detail-card {
  min-height: 0;
  padding: clamp(14px, 2.4vw, 22px);
  border-radius: 28px;
}

.hevd-detail-head {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.hevd-detail-head .hevd-datebox {
  width: 78px;
  height: 78px;
  border-radius: 21px;
}

.hevd-detail-title {
  margin-top: 8px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.06;
}

.hevd-source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 4px 0 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--he-green) 20%, var(--he-line));
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--he-green) 7%, #fff), #fff);
}

.hevd-source-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--he-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hevd-source-panel strong {
  display: block;
  color: var(--he-green-dark);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.15;
}

.hevd-source-panel small {
  display: block;
  margin-top: 4px;
  color: var(--he-muted);
  font-size: 0.9rem;
}

.hevd-source-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hevd-detail-content {
  color: #3f4858;
  font-size: 1rem;
  line-height: 1.62;
}

.hevd-detail-content p:first-child {
  margin-top: 0;
}

.hevd-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.hevd-detail-facts div {
  display: block;
  border: 1px solid var(--he-line);
  border-radius: 16px;
  background: var(--he-soft);
  padding: 11px 12px;
}

.hevd-detail-facts dt {
  margin-bottom: 4px;
}

.hevd-detail-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
}

.hevd-feedback-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--he-line);
  border-radius: 20px;
  background: #fbfcfd;
}

.hevd-feedback-intro strong,
.hevd-feedback-intro span {
  display: block;
}

.hevd-feedback-intro strong {
  margin-bottom: 3px;
  font-size: 1rem;
}

.hevd-feedback-intro span,
.hevd-feedback-small {
  color: var(--he-muted);
  font-size: 0.9rem;
}

.hevd-feedback-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hevd-feedback-result {
  min-height: 0;
  margin-top: 10px;
  color: var(--he-green-dark);
  font-size: 0.92rem;
  font-weight: 650;
}

.hevd-feedback-result.is-error {
  color: #b42318;
}

.hevd-report-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 19, 24, 0.42);
  backdrop-filter: blur(4px);
}

.hevd-report-modal[hidden] {
  display: none;
}

.hevd-report-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--he-line);
  border-radius: 24px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.22);
}

.hevd-report-dialog h2 {
  margin: 0 0 7px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.hevd-report-dialog p,
.hevd-report-dialog small {
  color: var(--he-muted);
}

.hevd-report-dialog label {
  display: block;
  margin-top: 12px;
}

.hevd-report-dialog label span {
  display: block;
  margin-bottom: 5px;
  color: var(--he-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hevd-report-dialog input,
.hevd-report-dialog select,
.hevd-report-dialog textarea {
  width: 100%;
  border: 1px solid var(--he-line);
  border-radius: 16px;
  background: #fff;
  color: var(--he-text);
  padding: 11px 12px;
  font-family: var(--he-font);
  font-size: 0.95rem;
}

.hevd-report-dialog textarea {
  min-height: 88px;
  resize: vertical;
}

.hevd-report-dialog button[type="submit"] {
  margin-top: 14px;
}

.hevd-report-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--he-line);
  border-radius: 50%;
  background: #fff;
  color: var(--he-text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.hevd-feedback-notice {
  margin: 0 0 14px;
  border: 1px solid var(--he-line);
  border-radius: 18px;
  background: #fff;
  padding: 12px 14px;
  color: var(--he-text);
}

.hevd-feedback-notice.is-success {
  border-color: color-mix(in srgb, var(--he-green) 22%, var(--he-line));
  background: color-mix(in srgb, var(--he-green) 6%, #fff);
}

.hevd-feedback-notice strong,
.hevd-feedback-notice span {
  display: block;
}

.hevd-feedback-notice span {
  margin-top: 2px;
  color: var(--he-muted);
  font-size: 0.92rem;
}

.hevd-related {
  margin-top: 24px;
}

.hevd-related h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
}

@media (max-width: 680px) {
  .hevd-detail-card { border-radius: 22px; padding: 13px; }
  .hevd-detail-head { grid-template-columns: 64px minmax(0, 1fr); gap: 11px; }
  .hevd-detail-head .hevd-datebox { width: 64px; height: 64px; border-radius: 17px; }
  .hevd-source-panel { grid-template-columns: 1fr; align-items: start; padding: 12px; border-radius: 18px; }
  .hevd-source-actions { justify-content: stretch; }
  .hevd-source-actions .hevd-btn { width: 100%; }
  .hevd-detail-facts { grid-template-columns: 1fr; }
  .hevd-detail-actions,
  .hevd-feedback-options { grid-template-columns: 1fr; }
  .hevd-report-dialog { padding: 18px 14px; border-radius: 20px; }
}

/* Single event polish 1.6.1 */
body.single-rea_event .page-header {
  display: none;
}

body.single-rea_event .site-main {
  width: 100%;
}

body.single-rea_event .page-content {
  margin-top: clamp(14px, 3vw, 28px);
}

.hevd-single-wrap {
  max-width: 1120px;
  padding: 0 clamp(10px, 2.4vw, 22px);
}

.hevd-detail-card {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--he-green) 12%, var(--he-line));
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.06);
}

.hevd-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--he-green), color-mix(in srgb, var(--he-green) 52%, #dff4e6));
}

.hevd-detail-head {
  padding-top: 6px;
}

.hevd-detail-title {
  max-width: 920px;
  letter-spacing: -0.035em;
}

.hevd-detail-card .hevd-location {
  max-width: 760px;
  color: #2f3848;
}

.hevd-source-panel {
  position: relative;
  margin-top: 2px;
  margin-bottom: 18px;
  padding: clamp(14px, 2vw, 18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.hevd-source-panel::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: var(--he-green);
}

.hevd-source-panel > div:first-child {
  padding-left: 12px;
}

.hevd-source-panel strong {
  word-break: break-word;
}

.hevd-source-actions .hevd-btn {
  min-width: 148px;
}

.hevd-detail-content {
  margin-top: 2px;
  padding: clamp(12px, 2vw, 16px);
  border: 1px solid var(--he-line);
  border-radius: 20px;
  background: #fff;
}

.hevd-detail-content:empty {
  display: none;
}

.hevd-detail-content p {
  margin: 0 0 0.85em;
}

.hevd-detail-content p:last-child {
  margin-bottom: 0;
}

.hevd-detail-content a {
  color: var(--he-green-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hevd-detail-facts {
  margin-top: 12px;
}

.hevd-detail-facts div {
  background: linear-gradient(180deg, #fff, var(--he-soft));
}

.hevd-feedback-box {
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.hevd-related {
  margin-top: 18px;
}

.hevd-related-card {
  border: 1px solid var(--he-line);
  border-radius: var(--he-radius);
  background: #fff;
  padding: clamp(14px, 2.4vw, 20px);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.032);
}

.hevd-related-head {
  margin-bottom: 12px;
}

.hevd-related-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--he-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hevd-related-head h2 {
  margin: 0;
  font-size: clamp(1.22rem, 2.3vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hevd-related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}

.hevd-related-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--he-green) 18%, var(--he-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--he-green) 6%, #fff);
  color: var(--he-green-dark);
  padding: 0 11px;
  font-size: 0.86rem;
  font-weight: 700;
}

.hevd-related-grid {
  margin-top: 0;
}

.hevd-related-card .hevd-card {
  box-shadow: none;
  background: linear-gradient(180deg, #fff, #fdfefd);
}

@media (max-width: 680px) {
  body.single-rea_event .page-content {
    margin-top: 10px;
  }

  .hevd-single-wrap {
    padding: 0 8px;
  }

  .hevd-detail-card::before {
    height: 5px;
  }

  .hevd-source-panel::before {
    left: 12px;
    top: 12px;
    bottom: 12px;
  }

  .hevd-source-panel > div:first-child {
    padding-left: 11px;
  }

  .hevd-source-actions .hevd-btn {
    min-width: 0;
  }

  .hevd-detail-content {
    border-radius: 18px;
    padding: 12px;
  }

  .hevd-related-card {
    border-radius: 20px;
    padding: 12px;
  }
}

/* Single event refinement 1.6.2 */
.hevd-source-panel {
  display: block;
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-color: var(--he-line);
  background: color-mix(in srgb, var(--he-green) 3%, #fff);
  box-shadow: none;
}

.hevd-source-panel::before {
  display: none;
}

.hevd-source-panel > div:first-child {
  padding-left: 0;
}

.hevd-source-eyebrow {
  margin-bottom: 5px;
  font-size: 0.64rem;
  color: var(--he-muted-soft);
}

.hevd-source-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--he-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.hevd-source-link {
  color: var(--he-green-dark);
  font-weight: 700;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hevd-source-link:hover {
  text-decoration: none;
  color: var(--he-green-dark);
}

.hevd-source-link.is-primary {
  color: var(--he-text);
}

.hevd-source-separator {
  color: var(--he-muted);
  font-size: 0.86rem;
}

.hevd-source-actions {
  display: none;
}

.hevd-detail-actions {
  grid-template-columns: 1fr;
  padding-top: 14px;
}

.hevd-detail-actions:empty {
  display: none;
}

.hevd-feedback-soft {
  margin-top: 10px;
  padding-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--he-line) 70%, transparent);
}

.hevd-feedback-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--he-muted);
  padding: 3px 0;
  font-family: var(--he-font);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.hevd-feedback-link:hover,
.hevd-feedback-link:focus-visible {
  color: var(--he-green-dark);
}

.hevd-feedback-box {
  margin-top: 9px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}

.hevd-feedback-intro strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.hevd-feedback-intro span,
.hevd-feedback-small {
  font-size: 0.84rem;
}

.hevd-feedback-options .hevd-btn {
  min-height: 38px;
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .hevd-source-links {
    display: block;
  }

  .hevd-source-link,
  .hevd-source-separator {
    display: inline;
  }
}

/* Category filter links and single map refinement 1.6.3 */
.hevd-category-link {
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.hevd-category-link:hover,
.hevd-category-link:focus-visible,
.hevd-category-link.is-active {
  background: color-mix(in srgb, var(--he-green) 14%, #fff);
  color: var(--he-green-dark);
  text-decoration: none;
}

.hevd-category-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--he-green) 22%, transparent);
  outline-offset: 2px;
}

.hevd-category-link:hover {
  transform: translateY(-1px);
}

.hevd-map-card {
  margin-top: 14px;
  border: 1px solid var(--he-line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.032);
}

.hevd-map-head {
  padding: 12px 14px 10px;
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--he-line);
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--he-green) 3%, #fff));
}

.hevd-map-head span {
  color: var(--he-muted-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hevd-map-head strong {
  color: var(--he-text);
  font-size: 0.98rem;
  line-height: 1.25;
}

.hevd-map-frame {
  position: relative;
  height: clamp(220px, 34vw, 340px);
  background: var(--he-soft);
}

.hevd-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hevd-map-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 8px 12px 12px;
  color: var(--he-green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hevd-map-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--he-green) 22%, transparent);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (max-width: 680px) {
  .hevd-category-link:hover {
    transform: none;
  }

  .hevd-map-card {
    border-radius: 18px;
    margin-top: 12px;
  }

  .hevd-map-head {
    padding: 11px 12px 9px;
  }

  .hevd-map-frame {
    height: 230px;
  }

  .hevd-map-link {
    margin: 7px 11px 11px;
    font-size: 0.86rem;
  }
}

.hevd-wrap.is-ajax-loading {
  opacity: 0.72;
  transition: opacity 160ms ease;
}

.hevd-wrap[aria-busy="true"] .hevd-grid,
.hevd-wrap[aria-busy="true"] .hevd-status,
.hevd-wrap[aria-busy="true"] .hevd-pagination {
  pointer-events: none;
}

/* 1.6.5: Klickbare Datumsfilter */
.hevd-datebox-link {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.hevd-datebox-link:hover,
.hevd-datebox-link:focus-visible {
  border-color: color-mix(in srgb, var(--he-green) 42%, var(--he-line));
  box-shadow: 0 8px 18px rgba(0, 131, 41, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.hevd-datebox-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--he-green) 22%, transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hevd-datebox-link {
    transition: none;
  }
  .hevd-datebox-link:hover,
  .hevd-datebox-link:focus-visible {
    transform: none;
  }
}


/* 1.6.8: HarzEvents links/buttons stay clean, without underlines. */
.hevd-wrap a,
.hevd-wrap a:hover,
.hevd-wrap a:focus,
.hevd-wrap a:focus-visible,
.hevd-wrap button,
.hevd-wrap button:hover,
.hevd-wrap button:focus,
.hevd-wrap button:focus-visible {
  text-decoration: none;
}


/* 1.6.9: Klickbare Filter sollen optisch so ruhig bleiben wie normale Metadaten. */
.hevd-inline-filter,
.hevd-inline-filter:visited,
.hevd-location .hevd-inline-filter,
.hevd-facts .hevd-inline-filter,
.hevd-time .hevd-inline-filter {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  border-radius: 8px;
}

.hevd-location .hevd-inline-filter,
.hevd-facts .hevd-inline-filter {
  color: inherit;
}

.hevd-time .hevd-inline-filter {
  color: inherit;
}

.hevd-inline-filter:hover,
.hevd-inline-filter:focus-visible {
  color: var(--he-text);
  background: color-mix(in srgb, var(--he-green) 7%, transparent);
  text-decoration: none;
}

.hevd-category-link,
.hevd-category-link:visited {
  color: var(--he-green-dark);
}

.hevd-category-link:hover,
.hevd-category-link:focus-visible,
.hevd-category-link.is-active {
  color: var(--he-green-dark);
  text-decoration: none;
}

/* 1.6.11: Aktive Filter als ruhige, barrierearme Chips */
.hevd-active-filters {
  display: grid;
  gap: 8px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--he-green) 10%, var(--he-line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--he-green) 3%, #fff);
}

.hevd-active-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--he-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hevd-active-reset {
  color: var(--he-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.hevd-active-reset:hover,
.hevd-active-reset:focus-visible {
  color: var(--he-green-dark);
}

.hevd-active-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hevd-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--he-green) 16%, var(--he-line));
  border-radius: 999px;
  background: #fff;
  color: var(--he-text);
  padding: 4px 7px 4px 11px;
  font-size: 0.86rem;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(16, 24, 40, 0.035);
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.hevd-active-filter-chip:hover {
  border-color: color-mix(in srgb, var(--he-green) 28%, var(--he-line));
  background: color-mix(in srgb, var(--he-green) 4%, #fff);
  color: var(--he-text);
  transform: translateY(-1px);
}

.hevd-active-filter-chip:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--he-green) 20%, transparent);
  outline-offset: 2px;
}

.hevd-active-filter-label {
  color: var(--he-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hevd-active-filter-chip strong {
  min-width: 0;
  overflow: hidden;
  color: var(--he-text);
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hevd-active-filter-x {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--he-soft);
  color: var(--he-muted);
  font-size: 1rem;
  line-height: 1;
}

.hevd-active-filter-chip:hover .hevd-active-filter-x,
.hevd-active-filter-chip:focus-visible .hevd-active-filter-x {
  background: color-mix(in srgb, var(--he-green) 9%, #fff);
  color: var(--he-green-dark);
}

@media (max-width: 680px) {
  .hevd-active-filters {
    margin-top: -2px;
    padding: 9px;
    border-radius: 16px;
  }

  .hevd-active-filters-head {
    align-items: flex-start;
    font-size: 0.7rem;
  }

  .hevd-active-filter-list {
    gap: 6px;
  }

  .hevd-active-filter-chip {
    min-height: 32px;
    max-width: 100%;
    font-size: 0.82rem;
  }
}
