.ilmo-events-shell {
  display: grid;
  gap: 22px;
  margin: 24px 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body.single-ilmo_event .entry-meta,
body.single-ilmo_event .post-meta,
body.single-ilmo_event .posted-on,
body.single-ilmo_event .byline,
body.single-ilmo_event .author,
body.single-ilmo_event .meta-sep,
body.single-ilmo_event .cat-links,
body.single-ilmo_event .tags-links,
body.single-ilmo_event .wp-block-post-date,
body.single-ilmo_event .wp-block-post-author,
body.post-type-ilmo_event .entry-meta,
body.post-type-ilmo_event .post-meta,
body.post-type-ilmo_event .posted-on,
body.post-type-ilmo_event .byline,
body.post-type-ilmo_event .author,
body.post-type-ilmo_event .meta-sep {
  display: none !important;
}

body.single-ilmo_event .wp-block-post-date + p,
body.single-ilmo_event .wp-block-post-date + p + p,
body.post-type-ilmo_event .wp-block-post-date + p,
body.post-type-ilmo_event .wp-block-post-date + p + p {
  display: none !important;
}

body.single-ilmo_event .byline::before,
body.single-ilmo_event .byline::after,
body.single-ilmo_event .posted-by::before,
body.single-ilmo_event .posted-by::after,
body.single-ilmo_event [class*="author"]::before,
body.single-ilmo_event [class*="byline"]::before,
body.post-type-ilmo_event .byline::before,
body.post-type-ilmo_event .byline::after,
body.post-type-ilmo_event .posted-by::before,
body.post-type-ilmo_event .posted-by::after,
body.post-type-ilmo_event [class*="author"]::before,
body.post-type-ilmo_event [class*="byline"]::before {
  content: none !important;
  display: none !important;
}

.ilmo-events-hero {
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(232, 138, 55, 0.22), transparent 28%),
    linear-gradient(135deg, #fff4df 0%, #f8e0c6 58%, #f4d6b0 100%);
  border: 1px solid #dfc2a0;
  box-shadow: 0 22px 50px rgba(66, 38, 16, 0.08);
}

.ilmo-events-hero__eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #8b4d18;
  font-weight: 700;
}

.ilmo-events-hero__title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #2f1808;
}

.ilmo-events-hero__text {
  margin: 0;
  max-width: 56rem;
  color: #6a4f3c;
  line-height: 1.6;
}

.ilmo-event-grid {
  display: grid;
  gap: 18px;
}

.ilmo-event-row,
.ilmo-quota-card,
.ilmo-event-details {
  border: 1px solid #d9d4cb;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(218, 165, 32, 0.12), transparent 36%),
    linear-gradient(180deg, #fffdf8 0%, #f7f2e8 100%);
  box-shadow: 0 12px 40px rgba(42, 30, 17, 0.08);
}

.ilmo-event-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.ilmo-event-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #d1681e, #8f4310);
}

.ilmo-event-row--upcoming::before {
  background: linear-gradient(180deg, #d18b22, #9f5b12);
}

.ilmo-event-row--closed::before {
  background: linear-gradient(180deg, #7e6c59, #56493d);
}

.ilmo-event-row__header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ilmo-event-row__title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.ilmo-event-row__title a {
  color: #2f1808;
  text-decoration: none;
}

.ilmo-event-row__status-text,
.ilmo-inline-detail,
.ilmo-event-row__excerpt,
.ilmo-registration-status p,
.ilmo-quota-card__header p {
  color: #5d4635;
}

.ilmo-event-row__status-text {
  margin: 0 0 14px;
  font-weight: 600;
}

.ilmo-event-row__excerpt p {
  margin-top: 0;
  margin-bottom: 12px;
}

.ilmo-event-row__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.ilmo-fact-chip {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #eadac4;
  background: rgba(255, 255, 255, 0.66);
}

.ilmo-fact-chip__label {
  display: block;
  margin-bottom: 4px;
  color: #7a604b;
  font-size: 0.9rem;
}

.ilmo-fact-chip__value {
  font-size: 1.3rem;
  color: #2f1808;
}

.ilmo-event-row__side {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 18px;
  background: rgba(82, 48, 23, 0.06);
  border: 1px solid #ead7bd;
}

.ilmo-event-row__side-title {
  margin: 0;
  color: #4e2c12;
}

.ilmo-quota-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ilmo-quota-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #eadcc8;
}

.ilmo-quota-summary__label,
.ilmo-quota-summary__meta {
  display: block;
}

.ilmo-quota-summary__label {
  font-weight: 700;
  color: #3e2512;
}

.ilmo-quota-summary__meta {
  margin-top: 2px;
  color: #6f5642;
  font-size: 0.9rem;
}

.ilmo-quota-summary__count {
  font-size: 1.25rem;
  color: #a74d13;
}

.ilmo-link-button,
.ilmo-toggle-form,
.ilmo-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #8c4a15, #bf6c21);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ilmo-link-button--full {
  width: 100%;
  box-sizing: border-box;
}

.ilmo-badge,
.ilmo-status-pill {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1dfb7;
  color: #58320f;
  font-size: 0.9rem;
  font-weight: 700;
}

.ilmo-status-pill--open {
  background: #e4f4dc;
  color: #286032;
}

.ilmo-status-pill--upcoming {
  background: #fff0d7;
  color: #9e5c10;
}

.ilmo-status-pill--closed {
  background: #ebe6df;
  color: #5b5148;
}

.ilmo-event-details {
  margin-top: 28px;
  padding: 26px;
}

.ilmo-event-facts {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  color: #3f2a1b;
}

.ilmo-registration-status {
  margin-bottom: 24px;
}

.ilmo-quota-card {
  padding: 22px;
  margin-top: 24px;
  color: #3f2a1b;
}

.ilmo-quota-card__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.ilmo-event-facts strong,
.ilmo-event-facts div,
.ilmo-quota-card__header,
.ilmo-quota-card__header h2,
.ilmo-quota-card__header p,
.ilmo-quota-card__header strong {
  color: #3f2a1b;
}

.ilmo-registration-form {
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid #e3d6bf;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #3f2a1b;
}

.ilmo-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.ilmo-field,
.ilmo-field-grid > * {
  min-width: 0;
}

.ilmo-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #3f2a1b;
}

.ilmo-field input,
.ilmo-field textarea,
.ilmo-field select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbb79c;
  background: #fff;
  box-sizing: border-box;
}

.ilmo-checkbox-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 16px;
  color: #3f2a1b;
}

.ilmo-table-wrapper {
  overflow-x: auto;
}

.ilmo-participant-list,
.ilmo-participant-list h3,
.ilmo-public-table,
.ilmo-public-table th,
.ilmo-public-table td {
  color: #3f2a1b;
}

.ilmo-public-table {
  width: 100%;
  border-collapse: collapse;
}

.ilmo-public-table th,
.ilmo-public-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eadfcf;
  text-align: left;
}

.ilmo-notice {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.ilmo-notice--success {
  background: #e9f6e7;
  color: #1d5b25;
}

.ilmo-notice--error {
  background: #fff1f0;
  color: #8c2620;
}

.ilmo-required {
  color: #b42318;
}

@media (max-width: 700px) {
  .ilmo-event-row {
    grid-template-columns: 1fr;
  }

  .ilmo-quota-card__header {
    align-items: stretch;
  }

  .ilmo-toggle-form,
  .ilmo-submit-button,
  .ilmo-link-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }
}
