.esp-community-panel {
  color: #14213d;
}

.esp-community-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 26px;
  padding: 24px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7faff 0%, #fff8ef 100%);
}

.esp-community-intro > div {
  max-width: 700px;
}

.esp-community-eyebrow {
  margin: 0 0 5px;
  color: #d85c0d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.esp-community-intro h2,
.esp-community-listing__header h2 {
  margin: 0 0 8px;
  color: #11284b;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.15;
}

.esp-community-intro h2 {
  font-size: clamp(25px, 3vw, 34px);
}

.esp-community-intro p:not(.esp-community-eyebrow),
.esp-community-listing__header p {
  margin: 0;
  color: #526276;
  line-height: 1.6;
}

.esp-community-toggle {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.esp-community-form-wrap {
  margin: 0 0 30px;
}

.esp-community-form-wrap[hidden] {
  display: none !important;
}

.esp-community-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(17, 40, 75, .08);
}

.esp-community-field {
  min-width: 0;
}

.esp-community-field--full,
.esp-community-consent,
.esp-community-form__actions {
  grid-column: 1 / -1;
}

.esp-community-field label {
  display: block;
  margin-bottom: 7px;
  color: #11284b;
  font-size: 14px;
  font-weight: 700;
}

.esp-community-field label span {
  color: #68778a;
  font-weight: 500;
}

.esp-community-field input[type="text"],
.esp-community-field input[type="url"],
.esp-community-field input[type="file"],
.esp-community-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #cbd6e2;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.esp-community-field input[type="text"],
.esp-community-field input[type="url"],
.esp-community-field textarea {
  padding: 11px 12px;
}

.esp-community-field input[type="file"] {
  padding: 9px;
}

.esp-community-field input:focus,
.esp-community-field textarea:focus {
  border-color: #224d80;
  outline: 3px solid rgba(34, 77, 128, .15);
}

.esp-community-field small {
  display: block;
  margin-top: 6px;
  color: #68778a;
  font-size: 12px;
}

.esp-community-image-preview {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  max-height: 340px;
  margin-top: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  object-fit: contain;
}

.esp-community-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: #f6f8fb;
  color: #46566b;
  font-size: 13px;
  line-height: 1.5;
}

.esp-community-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.esp-community-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.esp-community-form__actions button {
  border: 0;
  cursor: pointer;
}

.esp-community-form__actions button:disabled {
  cursor: wait;
  opacity: .65;
}

.esp-community-form__actions span {
  color: #68778a;
  font-size: 12px;
}

.esp-oc-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.esp-oc-notice {
  margin: 0 0 20px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}

.esp-oc-notice--success {
  border: 1px solid #a7d7bd;
  background: #edf9f2;
  color: #17633a;
}

.esp-oc-notice--error {
  border: 1px solid #efb7b7;
  background: #fff2f2;
  color: #8f2424;
}

.esp-community-listing {
  margin-top: 22px;
}

.esp-community-listing__header {
  margin-bottom: 18px;
}

.esp-community-listing__header h2 {
  font-size: 25px;
}

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

.esp-community-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 40, 75, .07);
}

.esp-community-card__image {
  position: relative;
  min-height: 190px;
  background: #eef2f7;
}

.esp-community-card__image img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: #f5f7fa;
}

.esp-community-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(17, 40, 75, .94);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.esp-community-card__body {
  padding: 17px;
}

.esp-community-card__body h3 {
  margin: 0 0 5px;
  color: #11284b;
  font-size: 18px;
  line-height: 1.3;
}

.esp-community-card__date {
  margin: 0 0 14px;
  color: #718094;
  font-size: 12px;
}

.esp-community-card__contact {
  margin-bottom: 13px;
  padding: 11px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #f5f7fa;
  color: #3e4d60;
  font-size: 13px;
  line-height: 1.5;
}

.esp-community-card__source {
  display: inline-flex;
  margin-bottom: 13px;
  color: #b94b09;
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
}

.esp-community-card__warning {
  margin: 0;
  color: #7a4d18;
  font-size: 11px;
  line-height: 1.45;
}

.esp-community-empty,
.esp-oc-empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 24px;
  border: 1px dashed #b9c7d8;
  border-radius: 12px;
  background: #fafbfd;
  color: #526276;
  text-align: center;
}

.esp-oc-empty strong {
  color: #11284b;
}

@media (max-width: 900px) {
  .esp-community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .esp-community-intro {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
    padding: 19px;
  }

  .esp-community-toggle {
    justify-content: center;
    width: 100%;
    white-space: normal;
  }

  .esp-community-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .esp-community-field,
  .esp-community-field--full,
  .esp-community-consent,
  .esp-community-form__actions {
    grid-column: 1;
  }

  .esp-community-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .esp-community-form__actions button {
    justify-content: center;
    width: 100%;
  }

  .esp-community-grid {
    grid-template-columns: 1fr;
  }

  .esp-community-card__image img {
    height: auto;
    max-height: 420px;
  }
}
