/* IEOS public events — structure & placement (2.1.50) */
.ieos-pub-shell {
  --ieos-green: #309b65;
  --ieos-green-dark: #1f7a4d;
  --ieos-ink: #0f172a;
  --ieos-muted: #64748b;
  --ieos-line: #e2e8f0;
  --ieos-soft: #f8fafc;
  --ieos-card: #fff;
  --ieos-max: 1120px;
}
.ieos-events-archive.ieos-pub-shell {
  margin: 0;
  padding: 0 0 72px;
  background: #f8fafc;
}
/* Hero */
.ieos-pub-hero {
  background:
    radial-gradient(900px 320px at 85% 20%, rgba(48,155,101,.22), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #0f2f24 42%, #166534 100%);
  color: #fff;
  padding: 40px 20px 72px;
  margin: 0;
  position: relative;
}
.ieos-pub-hero-inner {
  max-width: var(--ieos-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 28px;
  align-items: end;
}
.ieos-pub-kicker {
  margin: 0 0 8px;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #86efac;
}
.ieos-pub-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.ieos-pub-lead {
  margin: 0 0 18px;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,.9);
}
.ieos-pub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ieos-pub-hero-aside {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 16px 18px;
  min-width: 200px;
  backdrop-filter: blur(8px);
}
.ieos-pub-hero-aside .lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}
.ieos-pub-hero-aside .val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.ieos-pub-hero-aside .hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

/* Content pulls up over hero */
.ieos-pub-shell-inner {
  max-width: var(--ieos-max);
  margin: -40px auto 0;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}
.ieos-pub-events { width: 100%; }

/* Filters — full width sticky-feel card */
.ieos-pub-filters {
  background: var(--ieos-card);
  border: 1px solid var(--ieos-line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.ieos-pub-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 12px;
  align-items: end;
}
.ieos-pub-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ieos-muted);
  margin-bottom: 6px;
}
.ieos-pub-field select,
.ieos-pub-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ieos-line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--ieos-ink);
  box-sizing: border-box;
}
.ieos-pub-field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.ieos-pub-filter-meta {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: var(--ieos-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.ieos-pub-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.ieos-pub-type-chips a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #334155;
  background: #fff;
  border: 1px solid var(--ieos-line);
  transition: border-color .15s, background .15s, color .15s;
}
.ieos-pub-type-chips a:hover,
.ieos-pub-type-chips a.is-active {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

/* Buttons */
.ieos-pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-sizing: border-box;
}
.ieos-pub-btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.ieos-pub-btn-primary {
  background: var(--ieos-green);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(48,155,101,.28);
}
.ieos-pub-btn-primary:hover {
  background: var(--ieos-green-dark);
  color: #fff !important;
  transform: translateY(-1px);
}
.ieos-pub-btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border-color: rgba(255,255,255,.28);
}
.ieos-pub-shell-inner .ieos-pub-btn-ghost,
.ieos-pub-empty .ieos-pub-btn-ghost,
.ieos-pub-cta-band .ieos-pub-btn-ghost {
  background: #fff;
  color: var(--ieos-ink) !important;
  border-color: var(--ieos-line);
}
.ieos-pub-shell-inner .ieos-pub-btn-ghost:hover {
  background: var(--ieos-soft);
  border-color: #cbd5e1;
}

/* Grid cards */
.ieos-pub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.ieos-pub-card {
  display: flex;
  flex-direction: column;
  background: var(--ieos-card);
  border: 1px solid var(--ieos-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ieos-pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15,23,42,.1);
}
.ieos-pub-card.is-featured { border-color: #86efac; }
.ieos-pub-card-media {
  display: block;
  min-height: 148px;
  background-size: cover;
  background-position: center;
  background-color: #ecfdf5;
}
.ieos-pub-card-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ecfdf5, #e0f2fe);
}
.ieos-pub-datebadge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 58px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ieos-line);
  box-shadow: 0 6px 14px rgba(15,23,42,.06);
}
.ieos-pub-datebadge strong { font-size: 1.25rem; line-height: 1; color: var(--ieos-ink); }
.ieos-pub-datebadge span {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ieos-green);
}
.ieos-pub-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ieos-pub-card-top { display: flex; gap: 12px; align-items: flex-start; }
.ieos-pub-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ieos-pub-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #eef2ff;
  color: #3730a3;
}
.ieos-pub-pill-feat { background: #dcfce7; color: #166534; }
.ieos-pub-pill-muted { background: #f1f5f9; color: #475569; }
.ieos-pub-pill-warn { background: #fff7ed; color: #c2410c; }
.ieos-pub-card-title { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.ieos-pub-card-title a { color: var(--ieos-ink); text-decoration: none; }
.ieos-pub-card-title a:hover { color: var(--ieos-green); }
.ieos-pub-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ieos-pub-meta li {
  margin: 0;
  font-size: 13px;
  color: var(--ieos-muted);
  display: flex;
  gap: 6px;
}
.ieos-pub-meta-lg li { font-size: 15px; color: #334155; }
.ieos-pub-excerpt { margin: 0; font-size: 14px; line-height: 1.5; color: #475569; }
.ieos-pub-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ieos-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.ieos-pub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ieos-muted);
}
.ieos-pub-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Empty state — denser, less void */
.ieos-pub-empty {
  text-align: center;
  padding: 36px 24px 32px;
  background: var(--ieos-card);
  border: 1px solid var(--ieos-line);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.ieos-pub-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.ieos-pub-empty h3 {
  margin: 0 0 8px;
  color: var(--ieos-ink);
  font-size: 1.25rem;
}
.ieos-pub-empty p {
  margin: 0 auto 18px;
  color: var(--ieos-muted);
  max-width: 28rem;
  line-height: 1.5;
}
.ieos-pub-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* How it works strip */
.ieos-pub-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.ieos-pub-step {
  background: #fff;
  border: 1px solid var(--ieos-line);
  border-radius: 16px;
  padding: 16px 16px 14px;
}
.ieos-pub-step .num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.ieos-pub-step h4 {
  margin: 0 0 6px;
  font-size: .95rem;
  color: var(--ieos-ink);
}
.ieos-pub-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ieos-muted);
}

/* Past events */
.ieos-pub-section-title {
  margin: 8px 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ieos-ink);
  letter-spacing: -0.02em;
}
.ieos-pub-past-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.ieos-pub-past-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--ieos-line);
  border-radius: 14px;
}
.ieos-pub-past-item a {
  color: var(--ieos-ink);
  font-weight: 700;
  text-decoration: none;
}
.ieos-pub-past-item a:hover { color: var(--ieos-green); }
.ieos-pub-past-meta {
  font-size: 13px;
  color: var(--ieos-muted);
}

/* CTA band */
.ieos-pub-cta-band {
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(120deg, #ecfdf5, #eff6ff);
  border: 1px solid #bbf7d0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.ieos-pub-cta-band h3 {
  margin: 0 0 4px;
  color: var(--ieos-ink);
  font-size: 1.1rem;
}
.ieos-pub-cta-band p {
  margin: 0;
  color: var(--ieos-muted);
  font-size: 14px;
  max-width: 36rem;
  line-height: 1.45;
}

/* Single */
.ieos-event-single.ieos-pub-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 16px 64px;
  background: #fff;
}
.ieos-pub-back { margin: 0 0 12px; }
.ieos-pub-back a {
  color: var(--ieos-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.ieos-pub-back a:hover { color: var(--ieos-green); }
.ieos-pub-single-header h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: var(--ieos-ink);
}
.ieos-pub-single-cover {
  margin: 18px 0 22px;
  border-radius: 18px;
  overflow: hidden;
}
.ieos-pub-single-cover img { display: block; width: 100%; height: auto; }
.ieos-pub-prose {
  color: #334155;
  line-height: 1.7;
  font-size: 1.05rem;
}
.ieos-public-event {
  margin-top: 28px !important;
  padding: 22px !important;
  border-radius: 18px !important;
  border: 1px solid var(--ieos-line) !important;
  background: var(--ieos-soft) !important;
}

@media (max-width: 900px) {
  .ieos-pub-hero-inner { grid-template-columns: 1fr; }
  .ieos-pub-hero-aside { display: none; }
  .ieos-pub-filters-grid { grid-template-columns: 1fr 1fr; }
  .ieos-pub-field-grow { grid-column: span 2; }
  .ieos-pub-field-actions { grid-column: span 2; }
  .ieos-pub-grid { grid-template-columns: 1fr; }
  .ieos-pub-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ieos-pub-filters-grid { grid-template-columns: 1fr; }
  .ieos-pub-field-grow,
  .ieos-pub-field-actions { grid-column: auto; }
  .ieos-pub-hero { padding: 32px 16px 56px; }
  .ieos-pub-shell-inner { margin-top: -28px; }
}

/* ---- 2.1.51 fixes: contrast, theme chrome, alignment ---- */

/* Newspaper / theme: full-width main, hide sidebars on events pages */
body.ieos-public-events-page .td-ss-main-sidebar,
body.ieos-public-events-page .td-main-sidebar,
body.ieos-public-events-page aside.sidebar,
body.ieos-public-events-page #secondary,
body.ieos-public-events-page .sidebar,
body.post-type-archive-ieos_event .td-ss-main-sidebar,
body.single-ieos_event .td-ss-main-sidebar {
  display: none !important;
}
body.ieos-public-events-page .td-ss-main-content,
body.ieos-public-events-page .td-main-content,
body.ieos-public-events-page .td-pb-span8,
body.ieos-public-events-page .td-pb-span12 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
body.ieos-public-events-page .td-main-content-wrap,
body.ieos-public-events-page .td-container,
body.ieos-public-events-page .td-pb-row {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.ieos-public-events-page .td-main-content-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.ieos-public-events-page .page-title,
body.ieos-public-events-page .entry-title,
body.ieos-public-events-page .td-page-header {
  display: none !important;
}

/* Hero secondary CTA — high contrast on dark green */
.ieos-pub-hero .ieos-pub-btn-ghost {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  border-color: transparent !important;
  font-weight: 700;
}
.ieos-pub-hero .ieos-pub-btn-ghost:hover {
  background: #fff !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}
.ieos-pub-hero .ieos-pub-btn-primary {
  background: #22c55e !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35);
}

/* Filter card: full width of shell, consistent alignment */
.ieos-pub-shell-inner {
  max-width: 1120px;
  margin: -36px auto 0;
  padding: 0 20px 48px;
}
.ieos-pub-filters {
  width: 100%;
  box-sizing: border-box;
}
.ieos-pub-type-chips,
.ieos-pub-empty,
.ieos-pub-steps,
.ieos-pub-grid,
.ieos-pub-cta-band,
.ieos-pub-past-list {
  width: 100%;
  box-sizing: border-box;
}

/* Empty state: less vertical bloat */
.ieos-pub-empty {
  padding: 28px 20px 24px;
}
.ieos-pub-steps {
  margin-bottom: 16px;
}
.ieos-pub-cta-band {
  margin-bottom: 0;
}

/* Type chips: clearer active/inactive */
.ieos-pub-type-chips a {
  background: #fff;
  color: #334155 !important;
}
.ieos-pub-type-chips a.is-active {
  background: #309b65 !important;
  border-color: #309b65 !important;
  color: #fff !important;
}

/* Filter meta: avoid looking like form labels floating */
.ieos-pub-filter-meta {
  color: #64748b;
}
.ieos-pub-filter-meta span:first-child {
  font-weight: 600;
  color: #475569;
}

/* Hero aside contrast */
.ieos-pub-hero-aside {
  background: rgba(15, 23, 42, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.ieos-pub-hero-aside .val {
  color: #fff !important;
}
.ieos-pub-hero-aside .lbl,
.ieos-pub-hero-aside .hint {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Step cards: readable body text */
.ieos-pub-step h4 { color: #0f172a !important; }
.ieos-pub-step p { color: #64748b !important; }
.ieos-pub-empty h3 { color: #0f172a !important; }
.ieos-pub-empty p { color: #64748b !important; }

/* Prevent theme links turning purple/blue incorrectly */
.ieos-pub-shell a.ieos-pub-btn-primary { color: #fff !important; }
.ieos-pub-shell-inner a.ieos-pub-btn-ghost { color: #0f172a !important; }


/* ---- 2.1.52 Filter bar: aligned, centred, modern spacing ---- */
.ieos-pub-filters {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 20px 22px 14px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.02),
    0 16px 40px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.ieos-pub-filters-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(200px, 1.6fr) auto;
  gap: 14px 16px;
  align-items: end;
}

.ieos-pub-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.ieos-pub-field label,
.ieos-pub-label-spacer {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
  height: 14px;
}

.ieos-pub-label-spacer {
  visibility: hidden;
  user-select: none;
}

.ieos-pub-control,
.ieos-pub-field select,
.ieos-pub-field input[type="search"],
.ieos-pub-field input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ieos-pub-field select.ieos-pub-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 36px;
  cursor: pointer;
}

.ieos-pub-control:hover {
  border-color: #cbd5e1;
  background-color: #fff;
}

.ieos-pub-control:focus {
  outline: none;
  border-color: #309b65;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(48, 155, 101, 0.15);
}

.ieos-pub-field-submit {
  justify-content: flex-end;
}

.ieos-pub-submit-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 46px;
}

.ieos-pub-btn-filter {
  height: 46px !important;
  min-height: 46px !important;
  min-width: 100px;
  padding: 0 22px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  box-shadow: 0 6px 16px rgba(48, 155, 101, 0.25) !important;
}

.ieos-pub-btn-reset {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

.ieos-pub-filter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 14px 0 0;
  padding: 12px 2px 2px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  line-height: 1.35;
}

.ieos-pub-count {
  color: #475569;
}
.ieos-pub-count strong {
  color: #0f172a;
  font-weight: 700;
}
.ieos-pub-dir-note {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .ieos-pub-filters-row {
    grid-template-columns: 1fr 1fr;
  }
  .ieos-pub-field-search {
    grid-column: 1 / -1;
  }
  .ieos-pub-field-submit {
    grid-column: 1 / -1;
  }
  .ieos-pub-submit-group {
    width: 100%;
  }
  .ieos-pub-btn-filter {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .ieos-pub-filters {
    padding: 16px 14px 12px;
    border-radius: 16px;
  }
  .ieos-pub-filters-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ieos-pub-field-search,
  .ieos-pub-field-submit {
    grid-column: auto;
  }
  .ieos-pub-filter-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Featured this week strip */
.ieos-pub-featured-week {
  margin: 0 0 22px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #14532d 55%, #166534 100%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}
.ieos-pub-featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.ieos-pub-featured-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.02em;
}
.ieos-pub-featured-head p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.72) !important;
}
.ieos-pub-featured-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ieos-pub-featured-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  text-decoration: none !important;
  color: #fff !important;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ieos-pub-featured-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
  color: #fff !important;
}
.ieos-pub-featured-badge {
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #22c55e;
  color: #fff;
}
.ieos-pub-featured-card strong {
  font-size: 0.95rem;
  line-height: 1.3;
  color: #fff !important;
}
.ieos-pub-featured-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.75) !important;
}
.ieos-pub-card.is-featured {
  border-color: #86efac;
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.12);
}

/* ==========================================================================
   2.1.54 — Mobile, smartphone & mobile-browser compatibility
   ========================================================================== */

/* Base: prevent horizontal scroll, better text rendering */
.ieos-pub-shell,
.ieos-events-archive.ieos-pub-shell,
.ieos-event-single.ieos-pub-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.ieos-pub-shell *,
.ieos-pub-shell *::before,
.ieos-pub-shell *::after {
  box-sizing: border-box;
}

/* Safe areas (notch / home indicator) */
.ieos-pub-hero {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.ieos-pub-shell-inner {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(48px, env(safe-area-inset-bottom));
}

/* Touch targets ≥ 44px; kill sticky hover on touch */
.ieos-pub-btn,
.ieos-pub-btn-sm,
.ieos-pub-type-chips a,
.ieos-pub-featured-card,
.ieos-pub-card-actions a {
  min-height: 44px;
  -webkit-tap-highlight-color: rgba(48, 155, 101, 0.2);
  touch-action: manipulation;
}
.ieos-pub-btn-sm {
  min-height: 44px;
  padding-left: 14px;
  padding-right: 14px;
}
@media (hover: none) {
  .ieos-pub-card:hover,
  .ieos-pub-featured-card:hover {
    transform: none;
  }
}

/* iOS: 16px inputs prevent auto-zoom on focus */
.ieos-pub-control,
.ieos-pub-field select,
.ieos-pub-field input,
.ieos-pub-field input[type="search"],
.ieos-pub-field input[type="text"] {
  font-size: 16px !important;
  line-height: 1.25;
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
}
.ieos-pub-field select.ieos-pub-control {
  background-color: #f8fafc;
}

/* Type chips: horizontal scroll on small screens */
.ieos-pub-type-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 16px;
  padding-bottom: 4px;
}
.ieos-pub-type-chips::-webkit-scrollbar { display: none; }
.ieos-pub-type-chips a {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
}

/* Featured track: scroll on narrow phones */
.ieos-pub-featured-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.ieos-pub-featured-card {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  min-height: 100px;
}

/* ---- Tablet ---- */
@media (max-width: 900px) {
  .ieos-pub-hero {
    padding-top: 28px;
    padding-bottom: 56px;
  }
  .ieos-pub-hero-inner {
    grid-template-columns: 1fr;
  }
  .ieos-pub-hero-aside {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }
  .ieos-pub-shell-inner {
    margin-top: -28px;
  }
  .ieos-pub-filters-row,
  .ieos-pub-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ieos-pub-field-search,
  .ieos-pub-field-grow {
    grid-column: 1 / -1;
  }
  .ieos-pub-field-submit,
  .ieos-pub-field-actions {
    grid-column: 1 / -1;
  }
  .ieos-pub-submit-group {
    width: 100%;
  }
  .ieos-pub-btn-filter {
    flex: 1 1 auto;
    width: 100%;
  }
  .ieos-pub-grid {
    grid-template-columns: 1fr;
  }
  .ieos-pub-steps {
    grid-template-columns: 1fr;
  }
  .ieos-pub-cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .ieos-pub-cta-band .ieos-pub-btn {
    width: 100%;
  }
}

/* ---- Phones ---- */
@media (max-width: 560px) {
  .ieos-pub-hero {
    padding: 24px 14px 48px;
  }
  .ieos-pub-hero h1 {
    font-size: 1.65rem;
  }
  .ieos-pub-lead {
    font-size: 0.95rem;
  }
  .ieos-pub-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ieos-pub-hero-actions .ieos-pub-btn {
    width: 100%;
    justify-content: center;
  }
  .ieos-pub-hero-aside {
    display: none; /* clutter on very small screens; count still in filter meta */
  }
  .ieos-pub-shell-inner {
    margin-top: -24px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .ieos-pub-filters {
    padding: 14px 12px 10px;
    border-radius: 16px;
  }
  .ieos-pub-filters-row,
  .ieos-pub-filters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ieos-pub-field-search,
  .ieos-pub-field-submit,
  .ieos-pub-field-grow,
  .ieos-pub-field-actions {
    grid-column: auto;
  }
  .ieos-pub-control,
  .ieos-pub-field select,
  .ieos-pub-field input {
    height: 48px;
    min-height: 48px;
  }
  .ieos-pub-submit-group {
    height: auto;
    flex-direction: column;
  }
  .ieos-pub-btn-filter,
  .ieos-pub-btn-reset {
    width: 100%;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
  }
  .ieos-pub-filter-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .ieos-pub-empty {
    padding: 24px 14px;
  }
  .ieos-pub-empty-actions {
    flex-direction: column;
  }
  .ieos-pub-empty-actions .ieos-pub-btn {
    width: 100%;
  }
  .ieos-pub-card-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .ieos-pub-card-actions {
    width: 100%;
  }
  .ieos-pub-card-actions .ieos-pub-btn {
    flex: 1;
    justify-content: center;
  }
  .ieos-pub-past-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .ieos-pub-past-item .ieos-pub-btn {
    width: 100%;
  }
  .ieos-pub-featured-week {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .ieos-event-single.ieos-pub-shell {
    padding: 16px 12px 48px;
  }
}

/* Landscape phones */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .ieos-pub-hero {
    padding-top: 16px;
    padding-bottom: 40px;
  }
  .ieos-pub-hero h1 {
    font-size: 1.4rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ieos-pub-card,
  .ieos-pub-featured-card,
  .ieos-pub-btn {
    transition: none !important;
  }
}


/* Sponsor logos — public */
.ieos-pub-sponsors {
  margin: 20px 0 8px;
}
.ieos-pub-sponsors-title {
  margin: 0 0 12px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.ieos-pub-sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.ieos-pub-sponsor-item {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  min-height: 56px;
}
.ieos-pub-sponsor-item a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #0f172a !important;
}
.ieos-pub-sponsor-logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.ieos-pub-sponsor-item.is-premium {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4, #fff);
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.08);
}
.ieos-pub-sponsor-item.is-premium .ieos-pub-sponsor-logo img {
  height: 44px;
  max-width: 140px;
}
.ieos-pub-sponsor-name {
  font-weight: 700;
  font-size: 13px;
}
.ieos-pub-sponsor-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 999px;
}
.ieos-pub-card-sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 8px;
  min-height: 24px;
}
.ieos-pub-card-sponsors img {
  height: 22px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  opacity: 0.9;
}
@media (max-width: 560px) {
  .ieos-pub-sponsor-item { width: 100%; }
  .ieos-pub-sponsor-logo img { height: 32px; }
}


/* Homepage auto modules (child theme injects) */
.ieos-home-modules {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 8px;
  box-sizing: border-box;
}
.ieos-home-event-spotlight {
  margin: 12px 0 28px;
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, #0b1220 0%, #14532d 50%, #166534 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15,23,42,.14);
}
.ieos-home-event-spotlight-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.ieos-home-kicker {
  margin: 0;
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #86efac !important;
}
.ieos-home-event-spotlight-head h2 {
  margin: 0;
  flex: 1;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.02em;
}
.ieos-home-all {
  color: #bbf7d0 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.ieos-home-event-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.ieos-home-event-card {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  text-decoration: none !important;
  color: #fff !important;
  transition: background .15s ease;
}
.ieos-home-event-card:hover {
  background: rgba(255,255,255,.16);
  color: #fff !important;
}
.ieos-home-event-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ieos-home-event-thumb-fallback strong {
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
}
.ieos-home-event-thumb-fallback span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #86efac;
}
.ieos-home-event-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ieos-home-event-badge {
  display: inline-flex;
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #052e16;
  background: #86efac;
  padding: 2px 8px;
  border-radius: 999px;
}
.ieos-home-event-body strong {
  font-size: .95rem;
  line-height: 1.3;
  color: #fff !important;
}
.ieos-home-event-meta {
  font-size: 12px;
  color: rgba(255,255,255,.75) !important;
}
.ieos-homepage-spotlight {
  margin-bottom: 20px !important;
}
@media (max-width: 560px) {
  .ieos-home-modules { padding: 16px 12px 4px; }
  .ieos-home-event-spotlight { padding: 16px 12px; border-radius: 16px; }
  .ieos-home-event-spotlight-grid { grid-template-columns: 1fr; }
}
