* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(160deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
  min-height: 100vh;
  color: #1b3a1b;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

header .site-logo {
  max-width: 220px;
  height: auto;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 2rem;
  color: #1b5e20;
  margin-bottom: 0.25rem;
}

.header-text .tagline {
  font-size: 1.1rem;
  color: #2e7d32;
  margin: 0;
}

.banner {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.25rem;
  background: #ffffff;
  border: 2px solid #81c784;
  border-radius: 10px;
  color: #1b5e20;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 8px rgba(27, 94, 32, 0.1);
}

.banner.disclaimer,
.banner.disclaimer-footer {
  font-weight: 500;
  color: #3e5f3e;
  background: #f1f8f2;
  border: 2px dashed #81c784;
}

.banner.disclaimer-footer {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Two-column layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(27, 94, 32, 0.12);
}

.card h2 {
  font-size: 1.3rem;
  color: #1b5e20;
  margin-bottom: 0.5rem;
}

.hint {
  color: #4e7c4e;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #2e5d2e;
}

.field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  border: 2px solid #c8e6c9;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.field input:focus {
  outline: none;
  border-color: #2e7d32;
}

.field-hint {
  font-size: 0.85rem;
  color: #6b8f6b;
  margin-top: 0.35rem;
}

.subscription-email {
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1b5e20;
  background: #e8f5e9;
  border: 2px solid #c8e6c9;
  border-radius: 8px;
}

button[type="submit"],
button[type="button"] {
  padding: 0.7rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #2e7d32;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover,
button[type="button"]:hover {
  background: #1b5e20;
}

button[type="submit"]:disabled,
button[type="button"]:disabled {
  background: #a5d6a7;
  cursor: not-allowed;
}

button.danger {
  padding: 0.7rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #c62828;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

button.danger:hover {
  background: #b71c1c;
}

button.danger:disabled {
  background: #ef9a9a;
  cursor: not-allowed;
}

.message {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.message.success {
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #1b5e20;
}

.message.error {
  background: #fdecea;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}

.steps {
  padding-left: 1.25rem;
  color: #2e5d2e;
}

.steps li {
  margin-bottom: 0.5rem;
}

/* Calendar / event list */
.calendar-card {
  display: flex;
  flex-direction: column;
  height: 70vh;
  min-height: 400px;
}

.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  border: 2px solid #c8e6c9;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.2s;
}

.tag-input:focus-within {
  outline: none;
  border-color: #2e7d32;
}

.tag-input input {
  flex: 1;
  min-width: 120px;
  border: none;
  outline: none;
  padding: 0.3rem 0.4rem;
  font-size: 0.95rem;
  background: transparent;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #eff2f5;
  color: #1f2328;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
}

button.tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #57606a;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button.tag-remove:hover {
  background: #d0d7de;
  color: #1f2328;
}

.event-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.event-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid #e8f5e9;
}

.event-item:last-child {
  border-bottom: none;
}

.event-item a {
  font-weight: 600;
  color: #1b5e20;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}

.event-item a:hover {
  text-decoration: underline;
}

.event-title {
  font-weight: 600;
  color: #1b5e20;
  display: block;
  margin-bottom: 0.25rem;
}

.event-description {
  font-size: 0.85rem;
  color: #3e5f3e;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.event-badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.1rem 0.5rem;
  background: #eff2f5;
  color: #57606a;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
}

.event-meta {
  font-size: 0.85rem;
  color: #4e7c4e;
}

.event-meta .event-date {
  font-weight: 600;
  color: #2e7d32;
}

.loading {
  text-align: center;
  color: #4e7c4e;
  font-size: 0.9rem;
  padding: 1rem 0;
}

.end-message {
  text-align: center;
  color: #6b8f6b;
  font-size: 0.9rem;
  padding: 1rem 0;
}

footer {
  text-align: center;
  color: #4e7c4e;
  font-size: 0.9rem;
  margin-top: 2rem;
}

footer a {
  color: #1b5e20;
}

.footer-credit {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #6b8f6b;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  color: #ffffff;
  background: #2e7d32;
  border-radius: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  background: #1b5e20;
}

/* Mobile: single column */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .calendar-card {
    height: 60vh;
    min-height: 300px;
  }
}
