/* Gigxie — Community pages: success-stories.html, community.html, events.html
   Shared shell first (.chero / .cta-band / .panel-card), then per-page blocks scoped
   under .p-stories, .p-community, .p-events so the three pages can't collide. */

/* ============================================================
   Shared: dark hero
   ============================================================ */
.chero {
  position: relative;
  background: var(--hero-grad);
  overflow: hidden;
  padding-block: 96px 104px;
}
.chero::before,
.chero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.chero::before {
  top: -240px; right: -180px;
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(191, 247, 71, .15), transparent 65%);
}
.chero::after {
  bottom: -280px; left: -200px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(108, 59, 255, .38), transparent 65%);
}
.chero .container { position: relative; z-index: 1; }
.chero-inner { max-width: 780px; }
.chero h1 { color: #fff; margin: 22px 0 18px; }
.chero h1 em { font-style: normal; color: var(--accent); }
.chero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  max-width: 58ch;
}
.chero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chero .btn-accent:focus-visible,
.cta-band .btn-accent:focus-visible { outline-color: var(--accent); }
.chero .btn-outline,
.cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.chero .btn-outline:not(:disabled):hover,
.cta-band .btn-outline:not(:disabled):hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff;
}
.chero .btn-outline:focus-visible,
.cta-band .btn-outline:focus-visible { outline-color: #fff; }

.chero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 56px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  position: relative;
  z-index: 1;
}
.chero-stat dt {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.chero-stat dd { font-size: 14px; color: rgba(255, 255, 255, .62); margin-top: 4px; }
.chero-stat .accent { color: var(--accent); }

@media (max-width: 720px) {
  .chero { padding-block: 64px 72px; }
  .chero-sub { font-size: 17px; }
  .chero-stats { gap: 20px 32px; margin-top: 36px; }
  .chero-stat dt { font-size: 26px; }
}

/* ============================================================
   Shared: closing CTA band
   ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--hero-grad);
  padding-block: 88px;
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -320px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 59, 255, .4), transparent 65%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; max-width: 780px; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band h2 em { font-style: normal; color: var(--accent); }
.cta-band p { font-size: 18px; color: rgba(255, 255, 255, .76); margin-bottom: 32px; }
.cta-band .chero-actions { justify-content: center; margin-top: 0; }
.cta-band .fineprint { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .5); }
@media (max-width: 720px) { .cta-band { padding-block: 60px; } }

/* ============================================================
   Shared: generic surface card + eyebrow
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.panel-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.lift:hover, .lift:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--body);
  white-space: nowrap;
}

/* ============================================================
   success-stories.html
   ============================================================ */
.p-stories .featured {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: center;
}
.p-stories .featured-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(150deg, #6C3BFF 0%, #B24BFF 52%, #FF7A59 100%);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}
.p-stories .featured-tile svg.tile-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
}
.p-stories .featured-initials {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-family: var(--font-head);
  font-size: 92px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 6px 30px rgba(14, 14, 26, .28);
}
.p-stories .featured-caption { position: relative; z-index: 1; }
.p-stories .featured-caption .name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.p-stories .featured-caption .craft { font-size: 14px; color: rgba(255, 255, 255, .82); margin-top: 4px; }
.p-stories .featured-flag {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 1;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(14, 14, 26, .38);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.p-stories .featured-quote {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 14px 0 20px;
}
.p-stories .featured-body { color: var(--body); max-width: 62ch; }
.p-stories .featured-body + .featured-body { margin-top: 14px; }
.p-stories .outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.p-stories .outcome-num {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.p-stories .outcome-num.accent { color: var(--brand); }
.p-stories .outcome-label { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
@media (max-width: 1000px) {
  .p-stories .featured { grid-template-columns: 1fr; gap: 32px; }
  .p-stories .featured-tile { aspect-ratio: 16 / 10; max-width: 460px; }
  .p-stories .featured-quote { font-size: 24px; }
}
@media (max-width: 560px) {
  .p-stories .outcomes { grid-template-columns: 1fr; gap: 20px; }
}

/* Story grid */
.p-stories .filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.p-stories .filter-count { font-size: 14px; color: var(--muted); }
.p-stories .story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .p-stories .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .p-stories .story-grid { grid-template-columns: 1fr; } }

.p-stories .story-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.p-stories .story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.p-stories .story-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.p-stories .story-head { display: flex; align-items: center; gap: 12px; }
.p-stories .story-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.p-stories .story-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.p-stories .story-hook { font-size: 15px; line-height: 1.55; color: var(--body); flex: 1; }
.p-stories .story-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.p-stories .story-stat { font-size: 13px; color: var(--muted); }
.p-stories .story-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.p-stories .story-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  transition: gap var(--ease);
}
.p-stories .story-card:hover .story-more { gap: 9px; }
.p-stories .story-more svg { width: 15px; height: 15px; }
.p-stories .no-results { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); }

/* Story modal (reuses .modal-overlay / .modal from components.css) */
.p-stories .modal.story-modal { width: min(680px, calc(100vw - 32px)); padding: 0; }
.p-stories .story-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  z-index: 1;
}
.p-stories .story-modal-head h2 { font-size: 24px; }
.p-stories .story-modal-head .craft { font-size: 14px; color: var(--muted); margin-top: 2px; }
.p-stories .story-modal-head .modal-x { margin-left: auto; }
.p-stories .story-modal-body { padding: 24px 28px 28px; }
.p-stories .story-modal-body p { color: var(--body); line-height: 1.7; }
.p-stories .story-modal-body p + p { margin-top: 16px; }
.p-stories .story-modal-stat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.p-stories .story-modal-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
@media (max-width: 560px) {
  .p-stories .story-modal-head { padding: 20px 20px 16px; }
  .p-stories .story-modal-body { padding: 20px; }
}

/* Before / after math panel */
.p-stories .math-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
.p-stories .math-col { padding: 36px; }
.p-stories .math-col--before { background: var(--bg-soft); border-right: 1px solid var(--line); }
.p-stories .math-col--after { background: var(--bg); position: relative; }
.p-stories .math-col--after::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(191, 247, 71, .18), transparent 60%);
  pointer-events: none;
}
.p-stories .math-col > * { position: relative; }
.p-stories .math-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.p-stories .math-col--after .math-label { color: var(--success-ink); }
.p-stories .math-big {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  margin: 10px 0 4px;
}
.p-stories .math-col--before .math-big { color: var(--muted); }
.p-stories .math-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.p-stories .math-rows { display: grid; gap: 10px; }
.p-stories .math-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--body);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.p-stories .math-row:last-child { border-bottom: 0; padding-bottom: 0; }
.p-stories .math-row b { color: var(--ink); font-weight: 700; }
.p-stories .math-row .neg { color: var(--danger-ink); font-weight: 700; }
.p-stories .math-row .pos { color: var(--success-ink); font-weight: 700; }
.p-stories .math-note {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}
@media (max-width: 800px) {
  .p-stories .math-panel { grid-template-columns: 1fr; }
  .p-stories .math-col--before { border-right: 0; border-bottom: 1px solid var(--line); }
  .p-stories .math-col { padding: 28px 24px; }
  .p-stories .math-big { font-size: 36px; }
}

/* ============================================================
   community.html
   ============================================================ */
.p-community .channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .p-community .channel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .p-community .channel-grid { grid-template-columns: 1fr; } }
.p-community .channel-card { display: flex; flex-direction: column; gap: 12px; }
.p-community .channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--brand-wash);
  color: var(--brand);
  transition: background var(--ease), color var(--ease);
}
.p-community .channel-card:hover .channel-icon { background: var(--brand); color: #fff; }
.p-community .channel-icon svg { width: 22px; height: 22px; }
.p-community .channel-card h3 { font-size: 20px; }
.p-community .channel-card p { font-size: 15px; line-height: 1.55; color: var(--body); flex: 1; }
.p-community .channel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.p-community .channel-meta strong { color: var(--ink); font-weight: 700; }
.p-community .dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
  box-shadow: 0 0 0 3px rgba(23, 178, 106, .18);
}
.p-community .channel-card .btn { margin-top: 4px; }

/* Activity feed + threads two-column */
.p-community .split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .p-community .split { grid-template-columns: 1fr; gap: 48px; } }

.p-community .feed { display: grid; gap: 4px; }
.p-community .feed-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 16px 12px;
  border-radius: 12px;
  transition: background var(--ease);
}
.p-community .feed-item:hover { background: var(--bg-soft); }
.p-community .feed-item + .feed-item { border-top: 1px solid var(--line); }
.p-community .feed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
  flex: none;
}
.p-community .feed-icon svg { width: 18px; height: 18px; }
.p-community .feed-item .avatar { width: 40px; height: 40px; font-size: 14px; }
.p-community .feed-icon--win { background: #EEFBEF; color: var(--success-ink); }
.p-community .feed-icon--event { background: #FFF4E0; color: #8A5200; }
.p-community .feed-body p { font-size: 15px; line-height: 1.55; color: var(--body); }
.p-community .feed-body a { font-weight: 600; }
.p-community .feed-body strong { color: var(--ink); font-weight: 700; }
.p-community .feed-time { font-size: 13px; color: var(--muted); margin-top: 4px; display: block; }

.p-community .thread-list { display: grid; gap: 12px; }
.p-community .thread {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.p-community .thread:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: transparent; }
.p-community .thread:focus-within { border-color: var(--brand); }
.p-community .thread-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.35; }
.p-community .thread-title a { color: var(--ink); }
.p-community .thread-title a:hover { color: var(--brand); }
.p-community .thread-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.p-community .thread-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.p-community .thread-replies {
  flex: none;
  min-width: 58px;
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.p-community .thread-replies b {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.p-community .thread-replies span { font-size: 11px; color: var(--muted); }
.p-community .thread--hot .thread-replies { background: var(--brand-tint); border-color: var(--brand-wash); }
.p-community .thread--hot .thread-replies b { color: var(--brand-dark); }

/* Guidelines */
.p-community .principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-community .principles > :nth-child(4),
.p-community .principles > :nth-child(5) { grid-column: span 1; }
@media (max-width: 960px) { .p-community .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .p-community .principles { grid-template-columns: 1fr; } }
.p-community .principle { padding: 24px; }
.p-community .principle-num {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .06em;
}
.p-community .principle h3 { font-size: 18px; margin: 8px 0 8px; }
.p-community .principle p { font-size: 14px; line-height: 1.6; color: var(--body); }

/* Newsletter */
.p-community .news-panel {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  padding: 44px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
@media (max-width: 900px) { .p-community .news-panel { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; } }
.p-community .news-panel h2 { font-size: 32px; margin-bottom: 10px; }
.p-community .news-panel > div > p { color: var(--body); max-width: 52ch; }
.p-community .news-list { display: grid; gap: 8px; margin-top: 18px; }
.p-community .news-list li { display: flex; gap: 10px; font-size: 14px; color: var(--body); }
.p-community .news-list svg { width: 16px; height: 16px; color: var(--success-ink); flex: none; margin-top: 4px; }
.p-community .news-form { display: grid; gap: 12px; }
.p-community .news-form .field { margin-bottom: 0; }
.p-community .field-error { font-size: 13px; color: var(--danger-ink); font-weight: 600; }
.p-community .field-error[hidden] { display: none; }
.p-community .field input[aria-invalid="true"] { border-color: var(--danger); }
.p-community .news-fine { font-size: 12px; color: var(--muted); }
.p-community .news-success {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-dark);
}
.p-community .news-success[hidden] { display: none; }
.p-community .news-success svg { width: 22px; height: 22px; color: var(--success-ink); flex: none; margin-top: 2px; }
.p-community .news-success h3 { font-size: 17px; margin-bottom: 4px; }
.p-community .news-success p { font-size: 14px; color: var(--body); line-height: 1.55; }

/* ============================================================
   events.html
   ============================================================ */
.p-events .cal-strip {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding: 22px 24px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  max-width: 620px;
}
.p-events .cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.p-events .cal-head h2 { font-family: var(--font-head); font-size: 16px; color: #fff; }
.p-events .cal-head span { font-size: 13px; color: rgba(255, 255, 255, .62); }
.p-events .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.p-events .cal-dow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .48);
  text-align: center;
  padding-bottom: 4px;
}
.p-events .cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 38px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .5);
}
.p-events .cal-day.is-empty { visibility: hidden; }
.p-events a.cal-day {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  transition: background var(--ease), transform var(--ease), color var(--ease);
}
.p-events a.cal-day:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.p-events a.cal-day:hover .cal-dot { background: var(--ink); }
.p-events a.cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-events .cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.p-events .cal-day.is-today { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
@media (max-width: 560px) {
  .p-events .cal-strip { padding: 18px 14px 14px; }
  .p-events .cal-day { min-height: 32px; font-size: 12px; }
}

/* Featured event */
.p-events .feat-event {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 36px;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
@media (max-width: 800px) { .p-events .feat-event { grid-template-columns: 1fr; gap: 24px; padding: 26px 22px; } }
.p-events .date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 20px 12px;
  border-radius: 16px;
  background: var(--hero-grad);
  color: #fff;
  text-align: center;
  align-self: start;
}
.p-events .date-block .dow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.p-events .date-block .day { font-family: var(--font-head); font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.p-events .date-block .mon { font-size: 13px; color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
@media (max-width: 800px) {
  .p-events .date-block { flex-direction: row; align-items: baseline; gap: 10px; padding: 14px 18px; width: fit-content; }
  .p-events .date-block .day { font-size: 32px; }
}
.p-events .feat-event h2 { font-size: 30px; margin: 10px 0 12px; }
.p-events .feat-event > div > p { color: var(--body); max-width: 62ch; }
.p-events .pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p-events .format-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-tint);
  color: var(--brand-dark);
  white-space: nowrap;
}
.p-events .format-pill--workshop { background: #FFF4E0; color: #8A5200; }
.p-events .format-pill--ama { background: #E8F6FF; color: #0A5A86; }
.p-events .format-pill--meetup { background: #EEFBEF; color: var(--success-ink); }
.p-events .speaker-row { display: flex; flex-wrap: wrap; gap: 20px; margin: 22px 0; }
.p-events .speaker { display: flex; align-items: center; gap: 10px; }
.p-events .speaker-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.p-events .speaker-role { font-size: 13px; color: var(--muted); }
.p-events .feat-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.p-events .seats-left { font-size: 13px; color: var(--muted); }
.p-events .seats-left b { color: var(--danger-ink); }

/* Upcoming list */
.p-events .event-list { display: grid; gap: 16px; }
.p-events .event-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  scroll-margin-top: 96px;
}
.p-events .event-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.p-events .event-row .date-block { padding: 14px 8px; border-radius: 14px; }
.p-events .event-row .date-block .day { font-size: 30px; }
.p-events .event-row h3 { font-size: 19px; margin: 8px 0 6px; }
.p-events .event-row p { font-size: 14px; color: var(--body); max-width: 62ch; }
.p-events .event-when { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.p-events .event-when svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
@media (max-width: 860px) {
  .p-events .event-row { grid-template-columns: 1fr; gap: 14px; }
  .p-events .event-row .date-block { flex-direction: row; align-items: baseline; gap: 10px; padding: 10px 16px; width: fit-content; }
  .p-events .event-row .date-block .day { font-size: 26px; }
  .p-events .event-row .btn { width: fit-content; }
}

/* Past recordings */
.p-events .rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .p-events .rec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .p-events .rec-grid { grid-template-columns: 1fr; } }
.p-events .rec-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.p-events .rec-card:hover, .p-events .rec-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.p-events .rec-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-events .rec-tile--a { background: linear-gradient(135deg, #6C3BFF, #B24BFF); }
.p-events .rec-tile--b { background: linear-gradient(135deg, #0E7C4A, #57C77A); }
.p-events .rec-tile--c { background: linear-gradient(135deg, #1E0E38, #6C3BFF); }
.p-events .rec-tile--d { background: linear-gradient(135deg, #C2410C, #F59E0B); }
.p-events .rec-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  transition: transform var(--ease), background var(--ease);
}
.p-events .rec-card:hover .rec-play { transform: scale(1.08); background: #fff; }
.p-events .rec-play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.p-events .rec-dur {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(14, 14, 26, .7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.p-events .rec-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-events .rec-body h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.45; }
.p-events .rec-body h3 a { color: var(--ink); }
.p-events .rec-body h3 a:hover { color: var(--brand); }
.p-events .rec-meta { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }

/* Host an event */
.p-events .host-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 44px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
@media (max-width: 900px) { .p-events .host-panel { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; } }
.p-events .host-panel h2 { font-size: 32px; margin-bottom: 10px; }
.p-events .host-panel p { color: var(--body); max-width: 52ch; }
.p-events .host-list { display: grid; gap: 10px; margin-top: 20px; }
.p-events .host-list li { display: flex; gap: 10px; font-size: 14px; color: var(--body); line-height: 1.55; }
.p-events .host-list svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 4px; }
.p-events .host-form .field-error { font-size: 13px; color: var(--danger-ink); font-weight: 600; margin-top: 2px; }
.p-events .host-form .field-error[hidden] { display: none; }
.p-events .host-form input[aria-invalid="true"], .p-events .host-form textarea[aria-invalid="true"] { border-color: var(--danger); }
.p-events .host-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .p-events .host-form .form-row { grid-template-columns: 1fr; } }
.p-events .host-success {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-dark);
}
.p-events .host-success[hidden] { display: none; }
.p-events .host-success svg { width: 22px; height: 22px; color: var(--success-ink); flex: none; margin-top: 2px; }
.p-events .host-success h3 { font-size: 17px; margin-bottom: 4px; }
.p-events .host-success p { font-size: 14px; line-height: 1.55; }

/* Registration modal */
.p-events .modal.reg-modal { width: min(520px, calc(100vw - 32px)); }
.p-events .reg-event {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin: 16px 0 20px;
}
.p-events .reg-event .rt { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.p-events .reg-event .rw { font-size: 13px; color: var(--muted); margin-top: 4px; }
.p-events .reg-done { text-align: center; padding: 8px 0 4px; }
.p-events .reg-done .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  margin-bottom: 14px;
}
.p-events .reg-done .tick svg { width: 26px; height: 26px; }
.p-events .reg-done p { color: var(--body); margin-bottom: 18px; }
