.gordon-events {
  --gordon-bg: #f5f1e8;
  --gordon-cream: #fbf8f0;
  --gordon-green: #003d30;
  --gordon-green-2: #006f57;
  --gordon-muted: #657085;
  --gordon-line: rgba(0, 61, 48, 0.12);
  --gordon-shadow: 0 28px 90px rgba(24, 55, 39, 0.14);
  background: var(--gordon-bg);
  color: var(--gordon-green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: hidden;
}

body.home .entry-content > .gordon-events {
  margin-left: clamp(-50px, -5vw, -30px) !important;
  margin-right: 0 !important;
}

.gordon-events *,
.gordon-events *::before,
.gordon-events *::after {
  box-sizing: border-box;
}

.gordon-events [hidden] {
  display: none !important;
}

body.home .wp-block-post-title {
  display: none;
}

.gordon-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
}

.gordon-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  max-width: 1230px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 140px) 24px 80px;
  overflow: hidden;
}

.gordon-hero::before {
  content: "";
  position: absolute;
  inset: -20% 8% auto 22%;
  height: 560px;
  background: radial-gradient(circle, rgba(171, 239, 199, 0.62), transparent 64%);
  pointer-events: none;
}

.gordon-hero-copy,
.gordon-featured-panel {
  position: relative;
  z-index: 1;
}

.gordon-pill,
.gordon-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: #007a60;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gordon-pill {
  margin-bottom: 28px;
  padding: 10px 18px;
  border: 1px solid var(--gordon-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  letter-spacing: 0;
  text-transform: none;
}

.gordon-hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.gordon-hero-copy > p:not(.gordon-pill) {
  max-width: 690px;
  margin: 30px 0 0;
  color: #344056;
  font-size: 20px;
  line-height: 1.65;
}

.gordon-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.gordon-button,
.gordon-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 15px 25px;
  min-height: 50px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.gordon-button-primary,
.gordon-card-button {
  background: var(--gordon-green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 61, 48, 0.18);
}

.gordon-button-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--gordon-green);
  border: 1px solid var(--gordon-line);
}

.gordon-featured-panel {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--gordon-shadow);
}

.gordon-featured-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background: var(--gordon-green);
  color: #fff;
}

.gordon-featured-status p,
.gordon-featured-status h2 {
  margin: 0;
}

.gordon-featured-status h2 {
  margin-top: 10px;
  font-size: 32px;
}

.gordon-featured-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 28px;
}

.gordon-featured-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gordon-featured-metrics div {
  padding: 17px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.gordon-featured-metrics span,
.gordon-featured-metrics strong {
  display: block;
}

.gordon-featured-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.gordon-featured-list button {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--gordon-line);
  border-radius: 16px;
  background: #fff;
  color: var(--gordon-green);
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.gordon-featured-list span {
  display: block;
  color: #00866c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.gordon-featured-list strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
}

.gordon-agenda,
.gordon-speakers {
  max-width: 1230px;
  margin: 0 auto;
  padding: 70px 24px 0;
}

.gordon-agenda-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.gordon-agenda h2,
.gordon-speakers h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
}

.gordon-test-label {
  margin: 12px 0 0;
  color: #00866c;
  font-size: 13px;
  font-weight: 800;
}

.gordon-mode-tabs {
  display: flex;
  padding: 4px;
  border: 1px solid var(--gordon-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.gordon-mode-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: transparent;
  color: var(--gordon-green);
  font-weight: 800;
  cursor: pointer;
}

.gordon-mode-tabs button[aria-pressed="true"] {
  background: var(--gordon-green);
  color: #fff;
}

.gordon-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 240px);
  gap: 12px;
  margin: 28px 0;
  padding: 12px;
  border: 1px solid var(--gordon-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.gordon-filters label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  background: #fff;
  color: #8b9ab4;
}

.gordon-filters input,
.gordon-filters select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344056;
  font: inherit;
}

.gordon-date-group {
  margin-top: 28px;
}

.gordon-date-group > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 21px;
}

.gordon-session-list {
  display: grid;
  gap: 16px;
}

.gordon-session-card {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--gordon-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 55, 39, 0.1);
}

.gordon-card-stripe {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #73e4bd, #00866c, #a6f250);
}

.gordon-session-visual,
.gordon-modal-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 24px;
  border: 0;
  color: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}

.gordon-session-visual::before,
.gordon-modal-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 24%),
    radial-gradient(circle at 80% 28%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 45%);
}

.gordon-visual-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gordon-session-visual.has-image::after,
.gordon-modal-visual.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 39, 31, 0.14), rgba(0, 39, 31, 0.58));
}

.tone-forest { background: linear-gradient(135deg, #022f26, #006d55, #d8f477); }
.tone-sage { background: linear-gradient(135deg, #d7d2c8, #cdebd6, #00785d); }
.tone-lime { background: linear-gradient(135deg, #d7ffbc, #70dfb2, #004330); }
.tone-stone { background: linear-gradient(135deg, #dad3c8, #f7f4ed, #006248); }
.tone-dark { background: linear-gradient(135deg, #0c1511, #24231d, #f0df79); }
.tone-night { background: linear-gradient(135deg, #0d1721, #003d30, #9df04e); }

.gordon-session-visual > *,
.gordon-modal-visual > * {
  position: relative;
  z-index: 1;
}

.gordon-session-visual > .gordon-visual-image,
.gordon-modal-visual > .gordon-visual-image {
  position: absolute;
  z-index: 0;
}

.gordon-visual-label {
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.gordon-session-visual strong {
  max-width: 210px;
  font-size: 22px;
}

.gordon-session-visual small {
  max-width: 210px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.gordon-session-content {
  position: relative;
  padding: 28px;
}

.gordon-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gordon-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(0, 61, 48, 0.07);
  color: var(--gordon-green);
  font-size: 12px;
  font-weight: 900;
}

.gordon-badge.featured {
  background: #fff2bd;
  color: #8a5b00;
}

.gordon-badge.live {
  background: #00866c;
  color: #fff;
}

.gordon-badge.soon {
  background: #d9ffb8;
}

.gordon-session-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}

.gordon-session-card h3 button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gordon-session-content > p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--gordon-muted);
  font-size: 17px;
  line-height: 1.55;
}

.gordon-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--gordon-muted);
}

.gordon-session-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f7f9fb;
}

.gordon-session-meta .gordon-icon {
  color: #00866c;
}

.gordon-card-button {
  align-self: start;
  margin: 28px 28px 0 0;
}

.gordon-empty {
  padding: 42px;
  border: 1px dashed var(--gordon-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.gordon-speakers {
  padding-bottom: 90px;
}

.gordon-section-intro {
  max-width: 660px;
}

.gordon-section-intro > p:not(.gordon-eyebrow) {
  color: var(--gordon-muted);
  font-size: 17px;
  line-height: 1.6;
}

.gordon-speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.gordon-speaker-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--gordon-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 40px rgba(24, 55, 39, 0.06);
}

.gordon-speaker-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dff4e7, #d8ffb9);
  color: #007a60;
}

.gordon-speaker-card h3,
.gordon-speaker-card p {
  margin: 0;
}

.gordon-speaker-role {
  margin-top: 4px !important;
  color: #007a60;
  font-weight: 800;
}

.gordon-speaker-card small {
  display: block;
  margin-top: 12px;
  color: #8b9ab4;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gordon-modal-open {
  overflow: hidden;
}

.gordon-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gordon-modal.is-visible {
  display: flex;
}

.gordon-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 61, 48, 0.55);
  backdrop-filter: blur(10px);
  cursor: default;
}

.gordon-modal-panel {
  position: relative;
  width: min(calc(100vw - 64px), 1320px);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 32px;
  background: var(--gordon-bg);
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.36);
}

.gordon-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gordon-green);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.gordon-modal-top {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
}

.gordon-modal-visual {
  min-height: 460px;
  cursor: default;
}

.gordon-modal-visual strong {
  max-width: 360px;
  font-size: 24px;
  line-height: 1.16;
}

.gordon-modal-main {
  padding: 64px 48px 40px;
}

.gordon-modal-main h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 43px);
  line-height: 1.05;
}

.gordon-modal-description {
  margin-top: 22px;
  color: var(--gordon-muted);
  font-size: 17px;
  line-height: 1.62;
}

.gordon-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.gordon-detail-box {
  padding: 18px;
  border: 1px solid var(--gordon-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gordon-detail-box p {
  margin: 0 0 8px;
  color: #00866c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gordon-detail-box strong,
.gordon-detail-box span {
  display: block;
}

.gordon-detail-box span {
  margin-top: 4px;
  color: var(--gordon-muted);
}

.gordon-modal-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 34px;
  padding: 40px 48px 44px;
  border-top: 1px solid var(--gordon-line);
}

.gordon-modal-bottom h3 {
  margin: 0 0 22px;
  font-size: 26px;
}

.gordon-check-list {
  display: grid;
  gap: 12px;
}

.gordon-check-list p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--gordon-muted);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.gordon-check-list .gordon-icon {
  color: #00866c;
}

.gordon-modal-bottom aside {
  display: grid;
  gap: 16px;
}

.gordon-speaker-panel {
  padding: 24px;
  border-radius: 22px;
  background: var(--gordon-green);
  color: #fff;
}

.gordon-speaker-panel p,
.gordon-speaker-panel h3 {
  margin: 0;
}

.gordon-speaker-panel strong {
  display: block;
  margin: 8px 0 16px;
  color: #a4eac7;
}

.gordon-takeaways-panel {
  padding: 24px;
  border: 1px solid var(--gordon-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.gordon-takeaways {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.gordon-takeaways span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eaf8ef;
  color: var(--gordon-green);
  font-size: 13px;
  font-weight: 800;
}

.gordon-modal-cta {
  width: 100%;
}

@media (max-width: 920px) {
  .gordon-hero,
  .gordon-session-card,
  .gordon-modal-top,
  .gordon-modal-bottom {
    grid-template-columns: 1fr;
  }

  .gordon-featured-panel {
    max-width: none;
  }

  .gordon-card-button {
    margin: 0 24px 24px;
  }

  .gordon-speaker-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gordon-hero,
  .gordon-agenda,
  .gordon-speakers {
    padding-left: 16px;
    padding-right: 16px;
  }

  .gordon-agenda-header,
  .gordon-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gordon-filters,
  .gordon-featured-metrics,
  .gordon-detail-grid {
    grid-template-columns: 1fr;
  }

  .gordon-session-card {
    min-height: 0;
  }

  .gordon-session-visual {
    min-height: 220px;
  }

  .gordon-modal {
    padding: 10px;
    align-items: end;
  }

  .gordon-modal-panel {
    border-radius: 24px;
  }

  .gordon-modal-main,
  .gordon-modal-bottom {
    padding: 24px;
  }
}
