/* =========================================================
   exponanta-added.css
   Load AFTER exponanta.css (nesen.css) + Bootstrap 5

   Sections:
     A1.  Editorial tokens  (--ed-*)
     A2.  Editorial type atoms
     A3.  Editorial section header + divider
     A4.  Editorial image containers
     A5.  Editorial featured story
     A6.  Editorial story cards
     A7.  Editorial grids
     A8.  Editorial ranked list
     A9.  Editorial topic nav
     A10. Editorial newsletter strip
     A11. Editorial author card
     A12. Editorial pull quote
     A13. Editorial sidebar widget
     A14. Editorial ticker
     A15. Editorial utility buttons
     A16. Editorial section wrappers

     B1.  Horizontal event list cards  (.evh)
     B2.  Past events grid  (.past-grid / .past-card)
     B3.  Blog / article scoped typography  (.article-content)
     B4.  Navbar flash prevention
     B5.  Shared button variants
     B6.  Avatar
     B7.  Responsive overrides

   Zero global resets. Zero h1–h6 overrides outside scoped
   containers. Zero a/body rules.
   ========================================================= */


/* =========================================================
   A1. EDITORIAL TOKENS — prefixed --ed-, no collisions
   ========================================================= */

:root {
  --ed-display:    56px;
  --ed-headline:   36px;
  --ed-title:      22px;
  --ed-title-sm:   17px;
  --ed-deck:       18px;
  --ed-caption:    13px;
  --ed-label:      11px;

  --font-serif:    "Georgia", "Times New Roman", serif;
  /* --font-sans is defined in exponanta.css — required load order */

  --ed-ink:        var(--neutral-900);
  --ed-ink-soft:   var(--neutral-600);
  --ed-ink-faint:  var(--neutral-400);
  --ed-rule:       var(--blue-700);
  --ed-rule-light: var(--blue-100);
  --ed-accent:     var(--accent-coral);
}


/* =========================================================
   A2. EDITORIAL TYPE ATOMS
   ========================================================= */

.ed-display {
  font-family: var(--font-serif);
  font-size: var(--ed-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--ed-ink);
}

.ed-headline {
  font-family: var(--font-serif);
  font-size: var(--ed-headline);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.3px;
  color: var(--ed-ink);
  margin: 0 0 10px;
}
.ed-headline a { color: inherit; text-decoration: none; }
.ed-headline a:hover { color: var(--blue-700); }

.ed-title {
  font-family: var(--font-sans);
  font-size: var(--ed-title);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ed-ink);
  margin: 0 0 8px;
}
.ed-title a { color: inherit; text-decoration: none; }
.ed-title a:hover { color: var(--blue-700); }

.ed-title-sm {
  font-family: var(--font-sans);
  font-size: var(--ed-title-sm);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ed-ink);
  margin: 0 0 6px;
}
.ed-title-sm a { color: inherit; text-decoration: none; }
.ed-title-sm a:hover { color: var(--blue-700); }

.ed-deck {
  font-family: var(--font-serif);
  font-size: var(--ed-deck);
  font-style: italic;
  color: var(--ed-ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}

.ed-kicker {
  display: inline-block;
  font-size: var(--ed-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ed-accent);
  margin-bottom: 8px;
}

.ed-byline {
  font-size: var(--ed-caption);
  color: var(--ed-ink-faint);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.ed-byline strong  { color: var(--ed-ink-soft); font-weight: 600; }
.ed-byline__dot    { color: var(--ed-ink-faint); }

.ed-caption {
  font-size: 12px;
  color: var(--ed-ink-faint);
  line-height: 1.4;
  margin-top: 6px;
  font-style: italic;
}

.ed-readtime {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-ink-faint);
  text-transform: uppercase;
  letter-spacing: .5px;
}


/* =========================================================
   A3. EDITORIAL SECTION HEADER + DIVIDER
   ========================================================= */

.ed-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 3px solid var(--ed-rule);
  padding-top: 10px;
  margin-bottom: 24px;
}

.ed-section-header__title {
  font-size: var(--ed-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ed-ink);
  margin: 0;
}

.ed-section-header__link {
  font-size: var(--ed-caption);
  color: var(--blue-700);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
}
.ed-section-header__link:hover { color: var(--ed-accent); }

.ed-divider {
  border: none;
  border-top: 1px solid var(--ed-rule-light);
  margin: 20px 0;
}


/* =========================================================
   A4. EDITORIAL IMAGE CONTAINERS
   ========================================================= */

.ed-img {
  position: relative;
  overflow: hidden;
  background: var(--neutral-50);
  display: block;
}
.ed-img--16-9 { padding-top: 56.25%; }
.ed-img--4-3  { padding-top: 75%; }
.ed-img--3-2  { padding-top: 66.67%; }
.ed-img--1-1  { padding-top: 100%; }
.ed-img--wide { padding-top: 50%; }

.ed-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.ed-img:hover img { transform: scale(1.03); }


/* =========================================================
   A5. EDITORIAL FEATURED STORY
   ========================================================= */

.ed-featured {
  display: grid;
  grid-template-columns: 1fr 400px;
  border-bottom: 1px solid var(--ed-rule-light);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.ed-featured__img { position: relative; }

.ed-featured__img .ed-img {
  height: 100%;
  min-height: 340px;
  padding-top: 0;
}
.ed-featured__img .ed-img img {
  position: absolute;
  inset: 0;
}

.ed-featured__body {
  padding: 0 0 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ed-featured__sponsor {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ed-ink-faint);
  border-top: 1px solid var(--ed-rule-light);
  padding-top: 12px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .ed-featured {
    grid-template-columns: 1fr;
  }
  .ed-featured__img .ed-img {
    min-height: 0;
    padding-top: 56.25%;
    height: auto;
  }
  .ed-featured__body {
    padding: 20px 0 0;
  }
}


/* =========================================================
   A6. EDITORIAL STORY CARDS
   ========================================================= */

.ed-card {
  display: flex;
  flex-direction: column;
}

.ed-card__img    { margin-bottom: 14px; }
.ed-card__body   { flex: 1; display: flex; flex-direction: column; }
.ed-card__footer { margin-top: auto; padding-top: 12px; }

.ed-card--horiz {
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}
.ed-card--horiz .ed-card__img {
  flex: 0 0 100px;
  margin-bottom: 0;
}
.ed-card--horiz .ed-card__body { padding-top: 2px; }


/* =========================================================
   A7. EDITORIAL GRIDS
   ========================================================= */

.ed-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.ed-grid-feature {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px 32px;
}

/* Secondary column: cards separated by bottom borders */
.ed-grid-feature__secondary {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--ed-rule-light);
  padding-left: 32px;
}

.ed-grid-feature__secondary .ed-card {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ed-rule-light);
}
.ed-grid-feature__secondary .ed-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.ed-grid-feature__secondary .ed-card__img { margin-bottom: 10px; }

.ed-grid-main-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

/* Digest: 4-up horizontal strip */
.ed-digest {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ed-digest__item {
  padding: 16px 20px;
  border-right: 1px solid var(--ed-rule-light);
}
.ed-digest__item:first-child { padding-left: 0; }
.ed-digest__item:last-child  { border-right: none; padding-right: 0; }

@media (max-width: 1024px) {
  .ed-grid-3            { grid-template-columns: repeat(2, 1fr); }
  .ed-grid-feature      { grid-template-columns: 1fr; }
  .ed-grid-main-sidebar { grid-template-columns: 1fr; }
  .ed-digest            { grid-template-columns: repeat(2, 1fr); }

  .ed-grid-feature__secondary {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--ed-rule-light);
    padding-top: 24px;
    /* switch to 2-column grid at tablet */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  /* reset card borders in grid context */
  .ed-grid-feature__secondary .ed-card {
    padding-bottom: 0;
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .ed-grid-3                    { grid-template-columns: 1fr; }
  .ed-grid-feature__secondary   { grid-template-columns: 1fr; }
  .ed-digest                    { grid-template-columns: 1fr; }
  .ed-digest__item {
    border-right: none;
    border-bottom: 1px solid var(--ed-rule-light);
    padding: 14px 0;
  }
  .ed-digest__item:last-child { border-bottom: none; }
}


/* =========================================================
   A8. EDITORIAL RANKED LIST
   ========================================================= */

.ed-ranked { display: flex; flex-direction: column; }

.ed-ranked__item {
  display: flex;
  gap: 0;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--ed-rule-light);
}
.ed-ranked__item:last-child { border-bottom: none; }

.ed-ranked__num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-100);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: right;
  padding-top: 2px;
}

.ed-ranked__body { flex: 1; }


/* =========================================================
   A9. EDITORIAL TOPIC NAV
   ========================================================= */

.ed-topic-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0;
  border-top: 1px solid var(--ed-rule-light);
  border-bottom: 1px solid var(--ed-rule-light);
  margin-bottom: 32px;
}
.ed-topic-nav::-webkit-scrollbar { display: none; }

.ed-topic-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: var(--ed-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  text-decoration: none;
  border: 1.5px solid var(--ed-rule-light);
  background: transparent;
  color: var(--ed-ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
}
.ed-topic-pill:hover,
.ed-topic-pill--active {
  background: var(--blue-700);
  color: var(--neutral-0);
  border-color: var(--blue-700);
}


/* =========================================================
   A10. EDITORIAL NEWSLETTER STRIP
   ========================================================= */

.ed-newsletter {
  background: var(--neutral-900);
  padding: 48px 0;
  margin: 48px 0;
}

.ed-newsletter__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.ed-newsletter__text { flex: 1; }

.ed-newsletter__label {
  font-size: var(--ed-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.ed-newsletter__headline {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--neutral-0);
  line-height: 1.25;
  margin: 0 0 6px;
}

.ed-newsletter__desc {
  font-size: var(--ed-caption);
  color: rgba(255,255,255,.6);
  margin: 0;
}

.ed-newsletter__form {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  width: 380px;
}

.ed-newsletter__input {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--neutral-0);
  font-size: var(--ed-caption);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .15s;
}
.ed-newsletter__input::placeholder { color: rgba(255,255,255,.4); }
.ed-newsletter__input:focus        { border-color: var(--accent-teal); }

.ed-newsletter__btn {
  padding: 11px 22px;
  border-radius: var(--radius-md);
  background: var(--accent-coral);
  color: var(--neutral-0);
  font-size: var(--ed-caption);
  font-weight: 700;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.ed-newsletter__btn:hover { opacity: .88; }

@media (max-width: 768px) {
  .ed-newsletter__inner { flex-direction: column; gap: 24px; }
  .ed-newsletter__form  { width: 100%; }
}


/* =========================================================
   A11. EDITORIAL AUTHOR CARD
   ========================================================= */

.ed-author {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ed-rule-light);
}

.ed-author__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-700);
  overflow: hidden;
}
.ed-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-author__body { flex: 1; }

.ed-author__name {
  font-size: var(--ed-caption);
  font-weight: 700;
  color: var(--ed-ink);
  margin: 0 0 2px;
}

.ed-author__role {
  font-size: 12px;
  color: var(--ed-ink-faint);
  margin: 0 0 8px;
}

.ed-author__bio {
  font-size: 12px;
  color: var(--ed-ink-soft);
  line-height: 1.5;
  margin: 0;
}

.ed-author__follow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--blue-700);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}
.ed-author__follow:hover {
  background: var(--blue-700);
  color: var(--neutral-0);
}


/* =========================================================
   A12. EDITORIAL PULL QUOTE
   ========================================================= */

.ed-pullquote {
  border-left: 4px solid var(--ed-rule);
  padding: 8px 0 8px 24px;
  margin: 24px 0;
}

.ed-pullquote__text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ed-ink);
  line-height: 1.45;
  margin: 0 0 10px;
}

.ed-pullquote__attribution {
  font-size: var(--ed-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--ed-ink-faint);
}


/* =========================================================
   A13. EDITORIAL SIDEBAR WIDGET
   ========================================================= */

.ed-widget { margin-bottom: 32px; }
.ed-widget + .ed-widget {
  border-top: 1px solid var(--ed-rule-light);
  padding-top: 32px;
}

.ed-widget__header {
  font-size: var(--ed-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ed-ink);
  border-top: 3px solid var(--ed-rule);
  padding-top: 10px;
  margin-bottom: 20px;
}


/* =========================================================
   A14. EDITORIAL TICKER
   Note: HTML must duplicate the .ed-ticker__track items once
   for seamless infinite scroll (animation assumes 50% offset).
   ========================================================= */

.ed-ticker {
  background: var(--blue-700);
  padding: 8px 0 8px 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ed-ticker__label {
  flex-shrink: 0;
  padding: 0 16px 0 0;
  font-size: var(--ed-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-teal);
  border-right: 1px solid rgba(255,255,255,.3);
  margin-right: 20px;
  white-space: nowrap;
}

.ed-ticker__track {
  display: flex;
  gap: 40px;
  animation: ed-ticker-scroll 35s linear infinite;
  white-space: nowrap;
}

.ed-ticker__item {
  font-size: var(--ed-caption);
  color: rgba(255,255,255,.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .15s;
}
.ed-ticker__item:hover { color: var(--accent-teal); }
.ed-ticker__sep        { color: rgba(255,255,255,.3); }

@keyframes ed-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =========================================================
   A15. EDITORIAL UTILITY BUTTONS
   ========================================================= */

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  color: var(--blue-700);
  font-size: var(--ed-caption);
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.btn-ghost:hover { color: var(--ed-accent); }

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ed-rule-light);
  background: transparent;
  color: var(--ed-ink);
  font-size: var(--ed-label);
  font-weight: 700;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .8px;
  cursor: pointer;
  transition: all .15s;
}
.btn-more:hover {
  border-color: var(--blue-700);
  color: var(--blue-700);
}


/* =========================================================
   A16. EDITORIAL SECTION WRAPPERS
   ========================================================= */

.ed-section         { padding: 40px 0; }
.ed-section--flush  { padding: 0; }
.ed-section--tinted { background: var(--neutral-50); }
.ed-section--dark   { background: var(--neutral-900); padding: 48px 0; }

.ed-section + .ed-section {
  border-top: 1px solid var(--ed-rule-light);
}


/* =========================================================
   B1. HORIZONTAL EVENT LIST CARDS  (.evh)
   ========================================================= */

/* ── Card shell ── */
.evh {
  display: flex !important;          /* fight Bootstrap .card flex-direction:column */
  flex-direction: row !important;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
  /* inherits .card border-radius, shadow, border from exponanta.css */
}

/* ── Image column ── */
.evh__img {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  align-self: stretch;
  overflow: hidden;
}

.evh__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image overlay tints */
.evh__img-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.evh--v1 .evh__img-overlay { background: rgba(36,70,200,.12); }
.evh--v2 .evh__img-overlay { background: linear-gradient(to right, rgba(20,20,40,.45), rgba(36,70,200,.1)); }
.evh--v3 .evh__img-overlay { background: linear-gradient(to right, rgba(36,70,200,.35) 0%, rgba(79,209,197,.12) 100%); }

/* Date badge: move from bottom-left (nesen.css default) to top-left */
.evh .event-card__date {
  top: 14px !important;
  bottom: auto !important;
  left: 14px !important;
  z-index: 2;
}

.evh .event-card__status { z-index: 2; }

/* ── Vertical stripe (V3 only) ── */
.evh__stripe {
  flex: 0 0 4px;
  width: 4px;
  align-self: stretch;
  background: linear-gradient(to bottom, var(--blue-700), var(--accent-teal));
}

/* Variant accent: V2 left border */
.evh--v2 {
  border-left: 3px solid var(--blue-700) !important;
}

/* ── Body column ── */
.evh__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
}

/* Kicker label (V3) */
.evh__kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--accent-coral);
  line-height: 1;
}

/* ── Title + tags row ── */
.evh__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.evh__title {
  font-size: 22px !important;        /* override h3 from exponanta.css (30px) */
  font-weight: 700;
  color: var(--blue-700);
  margin: 0;
  line-height: 1.25;
}

/* ── Tags ── */
.evh__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  align-items: flex-start;
  padding-top: 3px;
}

.evh__tags .etag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}

.evh__tags .etag--free  { background: var(--neutral-0);           color: var(--neutral-600); border: 1.5px solid var(--neutral-400); }
.evh__tags .etag--blue  { background: var(--blue-100);            color: var(--blue-700);    border: none; }
.evh__tags .etag--teal  { background: rgba(79,209,197,.15);       color: #1a8a80;            border: none; }
.evh__tags .etag--coral { background: rgba(255,111,97,.12);       color: #c9392e;            border: none; }

/* ── Description ── */
.evh__desc {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  line-height: 1.55;
  margin: 0;
}

/* ── Meta row ── */
.evh__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.evh__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Footer: buttons left, avatars right ── */
.evh__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(36,70,200,.07);
  margin-top: auto;
}

.evh__btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Avatar label */
.evh .av-label {
  font-size: 12px;
  color: var(--neutral-600);
  margin-left: 8px;
  white-space: nowrap;
}


/* =========================================================
   B2. PAST EVENTS GRID  (.past-grid / .past-card)
   ========================================================= */

.past-grid__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* ── Card shell ── */
.past-card {
  display: grid;
  grid-template-columns: 45% 55%;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background: var(--neutral-0, #fff);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.08));
  min-height: 240px;
}

/* ── Carousel column ── */
.past-card__carousel {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--neutral-50, #f5f7fa);
  flex-shrink: 0;
}

.past-card__carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.past-card__carousel .carousel,
.past-card__carousel .carousel-inner,
.past-card__carousel .carousel-item {
  height: 100%;
}

.past-card__carousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.past-card__carousel .carousel-indicators        { margin-bottom: 6px; }
.past-card__carousel .carousel-indicators button { width: 6px; height: 6px; border-radius: 50%; opacity: .5; }
.past-card__carousel .carousel-indicators button.active { opacity: 1; }

/* ── Content column ── */
.past-card__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.past-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.past-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--neutral-900, #1e1e2f);
  line-height: 1.3;
  margin: 0;
}

.past-card__attendees {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-teal, #4fd1c5);
  white-space: nowrap;
  flex-shrink: 0;
}

.past-card__meta {
  font-size: 12px;
  color: var(--neutral-400, #9ca3af);
  line-height: 1.4;
}

.past-card__speakers {
  font-size: 12px;
  color: var(--neutral-600, #4b5563);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Section blocks (highlights, materials, connect) ── */
.past-card__section       { margin-top: 2px; }

.past-card__section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--neutral-400, #9ca3af);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
}

.past-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.past-card__highlights li {
  font-size: 12px;
  color: var(--neutral-600, #4b5563);
  padding-left: 12px;
  position: relative;
  line-height: 1.4;
}
.past-card__highlights li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--blue-700, #2446c8);
  font-weight: 700;
}

.past-card__materials {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.past-card__materials a {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-700, #2446c8);
  text-decoration: none;
}
.past-card__materials a:hover { color: var(--accent-coral, #ff6f61); }

.past-card__dot { color: var(--neutral-400, #9ca3af); font-size: 12px; }

.past-card__connect a {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-coral, #ff6f61);
  text-decoration: none;
}
.past-card__connect a:hover { text-decoration: underline; }


/* =========================================================
   B3. BLOG / ARTICLE SCOPED TYPOGRAPHY  (.article-content)
   ========================================================= */

.article-content {
  max-width: 720px;
}

.article-content h1 {
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  font-weight: 700;
}

.article-content h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  font-weight: 600;
  margin-top: 2rem;
}

.article-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: 1.5rem;
}

.article-content h4,
.article-content h5,
.article-content h6 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-top: 1rem;
}

.article-content p,
.article-content li {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--neutral-900);
}


/* =========================================================
   B4. NAVBAR FLASH PREVENTION
   ========================================================= */

#navbar {
  min-height: 64px;
  background: var(--neutral-0);
  border-bottom: 1px solid var(--blue-100);
}

@media print {
  nav.navbar {
    position: static !important;
    display: block !important;
    background: #fff;
    min-height: 64px;
  }
  .navbar-toggler,
  .collapse { display: none !important; }
}


/* =========================================================
   B5. SHARED BUTTON VARIANTS
   ========================================================= */

/* Calendar — coral outline */
.btn-ev-cal {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 9px 18px !important;
  border-radius: var(--radius-md) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--accent-coral) !important;
  color: var(--accent-coral) !important;
  background: transparent !important;
  cursor: pointer;
  line-height: 1;
  transition: background .15s, color .15s, transform .15s !important;
}
.btn-ev-cal:hover {
  background: var(--accent-coral) !important;
  color: var(--neutral-0) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Connect — gradient fill */
.btn-ev-connect {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 9px 20px !important;
  border-radius: var(--radius-md) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: var(--gradient-primary) !important;
  color: var(--neutral-0) !important;
  border: none !important;
  cursor: pointer;
  line-height: 1;
  transition: opacity .15s, transform .15s !important;
}
.btn-ev-connect:hover {
  opacity: .88 !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Register — coral fill */
.btn-ev-register {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-md, 4px);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-coral);
  color: var(--neutral-0);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-ev-register:hover { opacity: .88; }


/* =========================================================
   B6. AVATAR
   ========================================================= */

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6c63ff;
  color: white;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================================
   B7. RESPONSIVE OVERRIDES
   (consolidated — one block per breakpoint)
   ========================================================= */

/* ── Tablet ── */
@media (max-width: 900px) {
  /* Past events: single column */
  .past-grid__row { grid-template-columns: 1fr; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  /* Horizontal event card: stack vertically */
  .evh {
    flex-direction: column !important;
    width: 100%;
  }
  .evh__img {
    flex: none;
    width: 100%;
    height: 180px;
    position: relative;
  }
  .evh__img img  { position: absolute; }
  .evh__stripe   { width: 100%; height: 4px; }
  .evh__title-row { flex-direction: column; }
  .evh__title    { font-size: 18px !important; }

  /* Past card: carousel stacks above content */
  .past-card {
    grid-template-columns: 1fr;
  }
  .past-card__carousel { height: 200px; }
}


