/* Theme-agnostic styles for Events tiles */
.jp-section.jp-events {
  --je-accent: #33cc33;
  --je-border: rgba(255,255,255,.09);
  background: radial-gradient(700px 320px at 0% -10%, color-mix(in oklab, var(--je-accent) 20%, transparent), transparent), linear-gradient(180deg, #0f0f12, #0b0b0d);
  border: 1px solid var(--je-border);
  border-left: 4px solid color-mix(in oklab, var(--je-accent) 75%, #000 25%);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset, 0 10px 30px rgba(0,0,0,.35), 0 0 24px color-mix(in oklab, var(--je-accent) 12%, transparent);
  padding: 18px;
  margin: 24px 0;
}
.jp-section.jp-events .jp-section__title{
  margin: 0 0 14px; letter-spacing: .3px; color: #e6edf3;
  text-shadow: 0 0 10px color-mix(in oklab, var(--je-accent) 25%, transparent);
}
.jp-section.jp-events .events-tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
@media (max-width: 480px){ .jp-section.jp-events .events-tiles { grid-template-columns: 1fr; } }
.jp-section.jp-events .event-tile {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--je-border); border-radius: 12px; padding: 12px;
  position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.jp-section.jp-events .event-tile::before { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(380px 100px at 0% 0%, color-mix(in oklab, var(--je-accent) 12%, transparent), transparent); opacity: .7; }
.jp-section.jp-events .event-tile:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--je-accent) 55%, var(--je-border)); box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 24px color-mix(in oklab, var(--je-accent) 16%, transparent); }
.jp-section.jp-events .event-head { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.jp-section.jp-events .event-day { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #e6edf3; background: linear-gradient(135deg, color-mix(in oklab, var(--je-accent) 18%, #0b0b0d), #0d1016); border: 1px solid color-mix(in oklab, var(--je-accent) 35%, var(--je-border)); border-radius: 999px; padding: 4px 10px; font-size: .8rem; text-shadow: 0 0 18px color-mix(in oklab, var(--je-accent) 35%, transparent), 0 0 2px rgba(0,0,0,.4); }
.jp-section.jp-events .event-date { font-size: 1.05rem; font-weight: 800; letter-spacing: .2px; color:#e6edf3; }
.jp-section.jp-events .event-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jp-section.jp-events .event-line { display: grid; gap: 6px; }
.jp-section.jp-events .event-name { font-weight: 700; color:#e6edf3; }
.jp-section.jp-events .event-times { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jp-section.jp-events .badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: .85rem; color: rgba(230,237,243,.75); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 3px rgba(0,0,0,.12) inset, 0 0 12px color-mix(in oklab, var(--je-accent) 10%, transparent); }
.jp-section.jp-events .badge::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--je-accent); box-shadow: 0 0 12px color-mix(in oklab, var(--je-accent) 60%, transparent); }
.jp-section.jp-events .badge--muted { opacity: .75; border-style: dashed; }
.jp-section.jp-events .event-note { margin-top: 2px; font-size: .95rem; color: rgba(230,237,243,.85); border-left: 2px solid color-mix(in oklab, var(--je-accent) 40%, #000); padding-left: 10px; opacity: .9; }

/* Home two-column layout for Events + News */
.je-home-grid { display: grid; gap: 24px; grid-template-columns: minmax(420px, 1fr) minmax(640px, 1.8fr); align-items: start; margin: 24px 0; }
@media (max-width: 1100px){ .je-home-grid { grid-template-columns: 1fr; } }
@media (min-width: 1280px){ .je-home-grid { grid-template-columns: 1fr 2fr; } }
.je-home-grid .je-box { background: linear-gradient(180deg,#101116,#0b0c11); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.je-home-grid .je-box--events .jp-section { margin: 0; border: none; background: transparent; box-shadow: none; padding: 0; }
.je-home-grid .je-box--events .jp-section__title { display: none; }
.je-home-grid .je-box__title { margin: 0 0 10px; font-weight: 800; letter-spacing: .2px; color: #e6edf3; }

/* Compact news list: when single-day header is used, remove reserved date column */
.je-home-grid .je-box--news .jr-compact--single .jr-compact__item { grid-template-columns: 1fr; }
.je-home-grid .je-box--news .jr-compact--single .jr-compact__dayhdr { margin-bottom: 4px; }
/* Remove green dot bullet on news items in home grid */
.je-home-grid .je-box--news .jr-compact__item::before { display: none !important; }

/* List layout for events */
.jp-section.jp-events .events-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jp-section.jp-events .events-item { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: center; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border: 1px solid var(--je-border, rgba(255,255,255,.09)); border-radius: 10px; padding: 12px; position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.jp-section.jp-events .events-item:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--je-accent, #33cc33) 55%, rgba(255,255,255,.09)); box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 24px color-mix(in oklab, var(--je-accent, #33cc33) 16%, transparent); }
.jp-section.jp-events .event-wd { display:flex; align-items:center; justify-content:center; font-weight: 800; letter-spacing:.4px; text-transform: uppercase; color:#e6edf3; background: linear-gradient(135deg, color-mix(in oklab, var(--je-accent, #33cc33) 18%, #0b0b0d), #0d1016); border: 1px solid color-mix(in oklab, var(--je-accent, #33cc33) 35%, rgba(255,255,255,.09)); border-radius: 8px; padding: 6px 10px; }
.jp-section.jp-events .event-main { display: grid; gap: 6px; }
.jp-section.jp-events .event-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.jp-section.jp-events .event-times { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
/* Remove green dot in badges for a calmer look */
.jp-section.jp-events .badge::before { display: none; }

/* Compact mode: slimmer, modern list */
.jp-section.jp-events.jp-events--compact { background: transparent; border: none; box-shadow: none; padding: 0; margin: 12px 0; }
.jp-section.jp-events.jp-events--compact .jp-section__title { margin: 0 0 8px; }
.jp-section.jp-events.jp-events--compact .events-list { gap: 6px; }
.jp-section.jp-events.jp-events--compact .events-day { padding: 2px 8px; border-left-width: 3px; margin-top: 2px; }
.jp-section.jp-events.jp-events--compact .events-item { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; padding: 8px 2px; grid-template-columns: 80px 1fr; }
@media (max-width: 640px){ .jp-section.jp-events.jp-events--compact .events-item { grid-template-columns: 64px 1fr; } }
.jp-section.jp-events.jp-events--compact .event-wd { padding: 4px 8px; border-radius: 6px; font-size: .8rem; }
.jp-section.jp-events.jp-events--compact .event-title { font-size: 1rem; font-weight: 700; }
.jp-section.jp-events.jp-events--compact .badge { padding: 2px 8px; font-size: .8rem; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.jp-section.jp-events.jp-events--compact .event-note { font-size: .9rem; opacity: .85; }

/* Simple News list styles */
.je-news-simple { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.je-news-simple li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.08); padding: 6px 0; }
.je-news-simple li:last-child { border-bottom: 0; }
.je-news-simple .je-news-date { font-size: .85rem; opacity: .75; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); padding: 2px 8px; border-radius: 999px; text-align: center; }
.je-news-simple .je-news-link { color: inherit; text-decoration: none; font-weight: 600; }
.je-news-simple .je-news-link:hover { color: var(--je-accent, #33cc33); text-decoration: underline; }
.je-home-grid .je-box--news .je-news-simple { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.je-home-grid .je-box--news .je-news-simple li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.08); padding: 6px 0; }
.je-home-grid .je-box--news .je-news-simple li:last-child { border-bottom: 0; }
.je-home-grid .je-box--news .je-news-date { font-size: .85rem; opacity: .75; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); padding: 2px 8px; border-radius: 999px; text-align: center; }
.je-home-grid .je-box--news .je-news-link { color: inherit; text-decoration: none; font-weight: 600; }
.je-home-grid .je-box--news .je-news-link:hover { color: var(--je-accent, #33cc33); text-decoration: underline; }

/* MU single post hero + header (scoped to single posts) */
.je-container { padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px){ .je-container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1280px){ .je-container { padding-left: 32px; padding-right: 32px; } }

.je-site-header { position: relative; z-index: 1000; background: rgba(10,11,16,.6); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.je-site-header__shadow { height: 1px; background: rgba(0,0,0,.2); }
.je-site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.je-site-brand a { color: inherit; text-decoration: none; font-weight: 800; letter-spacing: .2px; }
.je-site-nav .je-nav, .je-site-nav .menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.je-site-nav a { color: inherit; text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.je-site-nav a:hover { background: rgba(255,255,255,.06); }

.je-post-header { margin: 12px auto 8px; padding: 0 16px; max-width: min(100%, 1100px); }
.je-post-header .entry-title { margin: 0 0 8px; font-size: clamp(28px, 5vw, 54px); line-height: 1.05; }
.je-post-meta { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.je-post-meta .je-post-author, .je-post-meta .je-post-date { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); padding: 4px 10px; border-radius: 999px; font-size: .9rem; display:inline-flex; align-items:center; gap:8px; }
.je-post-author__byline { opacity: .8; }
.je-post-hero { position: relative; width: 100%; height: 60vh; min-height: 360px; background-position: center; background-size: cover; margin: 0 0 16px; display: grid; align-items: end; }
.je-post-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35)); }
.je-post-hero__img { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; }
.je-hero__inner { position: relative; z-index: 1; padding-bottom: clamp(16px, 5vw, 48px); }
.je-hero__title { margin: 0 0 6px; font-size: clamp(32px, 6vw, 64px); line-height: 1.02; text-shadow: 0 2px 22px rgba(0,0,0,.55); }
.je-hero__teaser { margin: 0 0 10px; font-size: clamp(16px, 2.2vw, 22px); opacity: .9; }
.je-hero__meta .je-post-author, .je-hero__meta .je-post-date, .je-hero__meta .je-post-read { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; font-size: .95rem; display: inline-flex; align-items:center; gap:8px; }

/* Article body / related / nav */
.je-article { max-width: min(100%, 920px); margin: 0 auto; padding: 0 16px; }
.je-article p { line-height: 1.7; margin: 0 0 1.1em; }
.je-article h2, .je-article h3, .je-article h4 { margin: 1.4em 0 .6em; }
.je-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.je-related__item { display: grid; gap: 8px; text-decoration: none; color: inherit; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; background: #101116; }
.je-related__thumb { width: 100%; aspect-ratio: 16/9; background-position: center; background-size: cover; }
.je-related__title { font-weight: 700; padding: 8px 10px 12px; }
.je-post-nav { display: flex; justify-content: space-between; gap: 12px; margin: 16px auto; }
.je-post-nav a { color: inherit; text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 8px 12px; border-radius: 8px; }
.je-post-nav a:hover { color: var(--je-accent,#33cc33); text-decoration: underline; }

/* Reading progress bar */
#je-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--je-accent,#33cc33) var(--pct, 0%), transparent 0); z-index: 9999; }

/* Day header row */
.jp-section.jp-events .events-day { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 14px; padding: 6px 12px; border-left: 4px solid color-mix(in oklab, var(--je-accent, #33cc33) 70%, #000); }
.jp-section.jp-events .events-day .event-date { font-weight: 800; letter-spacing: .2px; color:#e6edf3; }
