/* Scoped styles ONLY for the event main description block */
#ev-description { 
  color: var(--base-content);
  font-size: .95rem;
}

#ev-description h1,
#ev-description h2,
#ev-description h3,
#ev-description h4,
#ev-description h5 { 
  font-weight:600; 
  line-height:1.25; 
  margin:.85em 0 .4em; 
  color: var(--primary); 
}
#ev-description h1 { font-size:1.55rem; }
#ev-description h2 { font-size:1.35rem; }
#ev-description h3 { font-size:1.15rem; }

#ev-description p { margin:0 0 .85em; }
#ev-description p:last-child { margin-bottom:0; }

#ev-description ul,
#ev-description ol { margin:0 0 1em 1.25em; padding:0; }
#ev-description li { margin:.25em 0; }

#ev-description a { 
  color: var(--primary); 
  text-decoration:underline; 
  text-underline-offset:2px; 
  transition:color .2s ease; 
}
#ev-description a:hover { color: var(--secondary); }

#ev-description img { 
  max-width:100%; 
  height:auto; 
  border-radius:8px; 
  display:block; 
  margin:.75rem 0; 
  box-shadow:0 2px 10px -2px rgba(0,0,0,.25); 
}

#ev-description iframe {
  display:block;
  width:100%;
  max-width:100%;
  aspect-ratio:16/9;
  margin:1rem 0;
  border:1px solid var(--base-300);
  border-radius:10px;
  background: #000;
  box-shadow:0 2px 10px -2px rgba(0,0,0,.35);
}

:root[data-theme$='_dark'] #ev-description iframe { border-color: var(--base-300); }

#ev-description blockquote { 
  margin:1rem 0; 
  padding:.75rem 1rem; 
  border-left:4px solid var(--primary); 
  background:linear-gradient(135deg, color-mix(in srgb,var(--primary) 8%,transparent), color-mix(in srgb,var(--primary) 3%,transparent)); 
  border-radius:4px; 
  font-style:italic; 
}

#ev-description code { 
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; 
  background: var(--base-200); 
  padding:2px 5px; 
  border-radius:4px; 
  font-size:.85em; 
}
#ev-description pre code { 
  display:block; 
  padding:.9rem 1rem; 
  overflow:auto; 
  line-height:1.35; 
}

#ev-description table { 
  width:100%; 
  border-collapse:collapse; 
  margin:1rem 0; 
  font-size:.9rem; 
}
#ev-description th,
#ev-description td { 
  border:1px solid var(--base-300); 
  padding:.5rem .6rem; 
  text-align:left; 
}
#ev-description th { 
  background: var(--base-200); 
  color: var(--base-content); 
  font-weight:600; 
}

#ev-description hr { 
  border:0; 
  border-top:1px solid var(--base-300); 
  margin:1.25rem 0; 
}

/* Dark theme refinements */
:root[data-theme$='_dark'] #ev-description blockquote { 
  background:linear-gradient(135deg, color-mix(in srgb,var(--primary) 18%,transparent), color-mix(in srgb,var(--primary) 6%,transparent)); 
}
:root[data-theme$='_dark'] #ev-description code { background: var(--base-300); }

/* Tighten last element spacing */
#ev-description > *:last-child { margin-bottom:0 !important; }
