/* ── Mailchimp page layout ───────────────────────────────────────────────── */

.mc-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

.mc-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border-left: 3px solid #265587;
}

.mc-card--edit {
  border-left-color: #185ca5;
}

.mc-card--add {
  border-left-color: #6b7a8d;
}

.mc-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #265587;
  margin: 0 0 0.35rem;
}

.mc-card--edit .mc-card__title {
  color: #185ca5;
}

.mc-card--add .mc-card__title {
  color: #6b7a8d;
}

.mc-card__description {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* ── Search form ────────────────────────────────────────────────────────── */

.mc-search-form__row {
  display: flex;
  gap: 0.625rem;
}

.mc-search-form__row input[type="email"] {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-size: 0.9375rem;
  border: 1.5px solid #d0d5dd;
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  width: auto;
}

.mc-search-form__row input[type="email"]:focus {
  border-color: #265587;
  box-shadow: 0 0 0 3px rgba(38, 85, 135, 0.12);
}

.mc-search-form__row input[type="email"]::placeholder {
  color: #aaa;
}

.mc-search-form__row button[type="submit"] {
  background: #265587;
  color: #fff;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.mc-search-form__row button[type="submit"]:hover {
  background: #185ca5;
}

/* ── Form actions row ───────────────────────────────────────────────────── */

.mc-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8eaed;
  flex-wrap: wrap;
}

.mc-actions button[type="submit"],
.mc-actions button[type="button"]#addSubscriberSubmit {
  background: #265587;
  color: #fff;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.mc-actions button[type="submit"]:hover {
  background: #185ca5;
  box-shadow: 0 2px 6px rgba(38, 85, 135, 0.25);
}

.button--danger {
  background: transparent;
  color: #b21f1f;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid #e5b3b3;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button--danger:hover {
  background: #b21f1f;
  border-color: #b21f1f;
  color: #fff;
}

/* ── Tags ───────────────────────────────────────────────────────────────── */

.tags-section {
  margin-top: 1rem;
}

.tags-section h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 0.5rem;
}

.tags-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags-section ul li {
  background: #e8edf5;
  color: #265587;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

/* ── Utility ────────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .mc-card {
    padding: 1.25rem;
  }

  .mc-search-form__row {
    flex-direction: column;
  }

  .mc-search-form__row button[type="submit"] {
    width: 100%;
  }

  .mc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mc-actions button,
  .button--danger {
    width: 100%;
    text-align: center;
  }
}
