/* Public Events & Conferences pages (news.hu.edu.so/events). Built on the --hu-* brand tokens, so dark mode follows. */
.pev-main { background: var(--hu-background); }
.pev-main .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pev-wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.pev-main .material-symbols-outlined { font-size: 1.15em; line-height: 1; vertical-align: -0.18em; }

/* ---------- hero ---------- */
.pev-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.75rem; border-bottom: 1px solid var(--hu-line); background: var(--hu-surface); }
.pev-eyebrow { margin: 0 0 0.6rem; font: 500 0.8rem/1 "DM Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hu-primary); }
.pev-hero__title { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--hu-ink); text-wrap: balance; }
.pev-hero__lede { max-width: 40rem; margin: 0.9rem 0 0; font-size: 1.08rem; line-height: 1.55; color: var(--hu-text-soft); }

.pev-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 2rem; }
.pev-tabs { display: inline-flex; padding: 0.25rem; border-radius: 9999px; background: var(--hu-surface-alt); border: 1px solid var(--hu-line); }
.pev-tab { padding: 0.5rem 1.1rem; border-radius: 9999px; font-size: 0.9rem; font-weight: 600; color: var(--hu-text-soft); text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.pev-tab:hover { color: var(--hu-ink); }
.pev-tab.is-on { background: var(--hu-surface); color: var(--hu-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.pev-types { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pev-chip { padding: 0.38rem 0.8rem; border-radius: 9999px; border: 1px solid var(--hu-line); font-size: 0.82rem; color: var(--hu-text-soft); text-decoration: none; background: var(--hu-surface); transition: border-color 0.15s, color 0.15s, background-color 0.15s; }
.pev-chip:hover { border-color: var(--hu-line-strong); color: var(--hu-ink); }
.pev-chip.is-on { background: var(--hu-primary); border-color: var(--hu-primary); color: #fff; }
.pev-tab:focus-visible, .pev-chip:focus-visible, .pev-btn:focus-visible, .pev-card a:focus-visible { outline: 2px solid var(--hu-focus); outline-offset: 2px; }

/* ---------- list ---------- */
.pev-list { padding: 2.25rem 0 4.5rem; display: grid; gap: 2rem; }
.pev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.pev-section-title { margin: 1rem 0 0; font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--hu-ink); }

.pev-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1.1rem; background: var(--hu-surface); border: 1px solid var(--hu-line); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.pev-card:hover { border-color: var(--hu-line-strong); box-shadow: var(--hu-shadow-sm); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .pev-card, .pev-card:hover { transition: none; transform: none; } }
.pev-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hu-surface-alt); }
.pev-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pev-card:hover .pev-card__media img { transform: scale(1.03); }
.pev-datechip { position: absolute; left: 0.85rem; top: 0.85rem; display: grid; justify-items: center; min-width: 3.2rem; padding: 0.35rem 0.5rem 0.4rem; border-radius: 0.75rem; background: var(--hu-surface); color: var(--hu-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); line-height: 1; }
.pev-datechip__m { font: 600 0.68rem/1 "DM Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hu-primary); }
.pev-datechip__d { margin-top: 0.2rem; font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 600; }
.pev-card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.pev-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pev-type { --type: #148154; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--type); }
.pev-type::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--type); }
.pev-flag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; background: var(--hu-surface-alt); color: var(--hu-text-soft); }
.pev-flag--live { background: var(--hu-primary-soft); color: var(--hu-primary-dark); }
.pev-flag--live::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; animation: pev-pulse 1.6s ease-in-out infinite; }
.pev-flag--postponed { background: #FEF3C7; color: #92400E; }
.pev-flag--cancelled { background: #FEE2E2; color: #991B1B; }
@keyframes pev-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .pev-flag--live::before { animation: none; } }
.pev-card__title { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--hu-ink); text-wrap: balance; }
.pev-card__title a { color: inherit; text-decoration: none; }
.pev-card__title a::after { content: ""; position: absolute; inset: 0; }
.pev-card { position: relative; }
.pev-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pev-card__summary { margin: 0; color: var(--hu-text-soft); line-height: 1.55; }
.pev-card__facts { display: grid; gap: 0.35rem; margin: auto 0 0; padding-top: 0.25rem; font-size: 0.86rem; color: var(--hu-text-soft); }
.pev-card__facts dd { margin: 0; display: flex; gap: 0.4rem; align-items: flex-start; }
.pev-card__facts .material-symbols-outlined { color: var(--hu-primary); }
.pev-card.is-cancelled .pev-card__title { text-decoration: line-through; text-decoration-color: rgba(153, 27, 27, 0.5); }

.pev-card--big { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pev-card--big .pev-card__media { aspect-ratio: auto; min-height: 21rem; }
.pev-card--big .pev-card__body { padding: clamp(1.4rem, 3vw, 2.4rem); gap: 0.85rem; justify-content: center; }
.pev-card--big .pev-card__title { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.pev-card--big .pev-card__facts { margin: 0.25rem 0 0.4rem; font-size: 0.95rem; }
.pev-card--big .pev-btn { position: relative; z-index: 1; align-self: flex-start; }
@media (max-width: 820px) { .pev-card--big { grid-template-columns: 1fr; } .pev-card--big .pev-card__media { min-height: 0; aspect-ratio: 16 / 9; } }

.pev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 1.2rem; border-radius: 9999px; border: 1px solid var(--hu-line-strong); background: var(--hu-surface); color: var(--hu-ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: background-color 0.15s, border-color 0.15s; }
.pev-btn:hover { background: var(--hu-surface-alt); }
.pev-btn--primary { background: var(--hu-primary); border-color: var(--hu-primary); color: #fff; }
.pev-btn--primary:hover { background: var(--hu-primary-dark); border-color: var(--hu-primary-dark); }
.pev-btn--block { width: 100%; }
.pev-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--hu-text-soft); font-size: 0.9rem; }
.pev-empty { display: grid; justify-items: center; gap: 0.4rem; padding: 3.5rem 1rem; text-align: center; border: 1px dashed var(--hu-line-strong); border-radius: 1.1rem; color: var(--hu-text-soft); }
.pev-empty .material-symbols-outlined { font-size: 2.4rem; color: var(--hu-primary); }
.pev-empty h2 { margin: 0.3rem 0 0; font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; color: var(--hu-ink); }
.pev-empty p { margin: 0; }

/* ---------- detail ---------- */
.pev-preview { padding: 0.65rem 1rem; text-align: center; background: #FEF3C7; color: #92400E; font-weight: 600; font-size: 0.9rem; }
.pev-dhero { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.75rem, 4vw, 2.75rem); background: var(--hu-surface); border-bottom: 1px solid var(--hu-line); }
.pev-dhero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .pev-dhero__grid { grid-template-columns: 1fr; } .pev-dhero__media { order: -1; } }
.pev-back { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 1.1rem; font-size: 0.88rem; font-weight: 600; color: var(--hu-text-soft); text-decoration: none; }
.pev-back:hover { color: var(--hu-primary); }
.pev-dhero__title { margin: 0.75rem 0 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; color: var(--hu-ink); text-wrap: balance; }
.pev-theme { margin: 1rem 0 0; padding-left: 0.9rem; border-left: 3px solid var(--hu-primary); font-family: "Newsreader", Georgia, serif; font-size: 1.15rem; font-style: italic; line-height: 1.45; color: var(--hu-text); }
.pev-theme span { display: block; margin-bottom: 0.15rem; font: 500 0.72rem/1 "DM Mono", ui-monospace, monospace; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hu-primary); }
.pev-dhero__lede { margin: 1rem 0 0; font-size: 1.08rem; line-height: 1.6; color: var(--hu-text-soft); }
.pev-dhero__media { margin: 0; overflow: hidden; border-radius: 1.25rem; aspect-ratio: 4 / 3; background: var(--hu-surface-alt); box-shadow: var(--hu-shadow-md); }
.pev-dhero__media img { width: 100%; height: 100%; object-fit: cover; }

.pev-alert { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 0.9rem; line-height: 1.5; }
.pev-alert .material-symbols-outlined { font-size: 1.5rem; }
.pev-alert--postponed { background: #FEF3C7; color: #78350F; }
.pev-alert--cancelled { background: #FEE2E2; color: #7F1D1D; }

.pev-dbody { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: 2.5rem 0 3rem; }
@media (max-width: 900px) { .pev-dbody { grid-template-columns: 1fr; } .pev-dside { order: -1; } }
.pev-dmain { display: grid; gap: 2.5rem; min-width: 0; }
.pev-h2 { margin: 0 0 1rem; font-family: "Fraunces", Georgia, serif; font-size: 1.55rem; font-weight: 600; color: var(--hu-ink); }
.pev-h3 { margin: 1.25rem 0 0.75rem; font: 500 0.78rem/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hu-text-soft); }
.pev-sec > .pev-h3:first-of-type { margin-top: 0; }
.pev-prose { font-size: 1.05rem; line-height: 1.7; color: var(--hu-text); }

.pev-speakers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.pev-speaker { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem; border-radius: 1rem; background: var(--hu-surface); border: 1px solid var(--hu-line); }
.pev-speaker__photo { flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden; background: var(--hu-primary-soft); color: var(--hu-primary-dark); font-weight: 700; font-size: 1.1rem; }
.pev-speaker__photo img { width: 100%; height: 100%; object-fit: cover; }
.pev-speakers--key .pev-speaker__photo { width: 5rem; height: 5rem; }
.pev-speaker__txt { min-width: 0; }
.pev-speaker__txt p { margin: 0; }
.pev-speaker__name { font-weight: 650; color: var(--hu-ink); line-height: 1.3; }
.pev-speaker__aff { margin-top: 0.2rem !important; font-size: 0.86rem; color: var(--hu-text-soft); line-height: 1.4; }
.pev-speaker__talk { margin-top: 0.45rem !important; font-family: "Newsreader", Georgia, serif; font-style: italic; color: var(--hu-text); line-height: 1.4; }
.pev-speaker__bio { margin-top: 0.4rem; font-size: 0.86rem; color: var(--hu-text-soft); }
.pev-speaker__bio summary { cursor: pointer; font-weight: 600; color: var(--hu-primary); }
.pev-speaker__bio p { margin-top: 0.35rem !important; line-height: 1.5; }

.pev-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.pev-tl { position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0 0 1.1rem 1.4rem; }
.pev-tl::before { content: ""; position: absolute; left: 0.3rem; top: 0.4rem; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--hu-primary); box-shadow: 0 0 0 4px var(--hu-primary-soft); }
.pev-tl::after { content: ""; position: absolute; left: 0.6rem; top: 1.25rem; bottom: 0; width: 2px; background: var(--hu-line); }
.pev-tl:last-child::after { display: none; }
.pev-tl time { font: 500 0.85rem/1.5 "DM Mono", ui-monospace, monospace; color: var(--hu-primary-dark); }
.pev-tl div { display: grid; gap: 0.15rem; }
.pev-tl strong { color: var(--hu-ink); }
.pev-tl span { font-size: 0.88rem; color: var(--hu-text-soft); }
.pev-tl em { font-style: normal; font-size: 0.75rem; color: var(--hu-muted); }
.pev-tl.is-done::before { background: var(--hu-muted); box-shadow: 0 0 0 4px var(--hu-surface-alt); }
.pev-tl.is-done time, .pev-tl.is-done strong { color: var(--hu-muted); }
@media (max-width: 520px) { .pev-tl { grid-template-columns: 1fr; gap: 0.15rem; } }

.pev-tracks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pev-tracks li { padding: 0.45rem 0.85rem; border-radius: 0.6rem; background: var(--hu-surface); border: 1px solid var(--hu-line); font-size: 0.9rem; color: var(--hu-text); }
.pev-orgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.pev-orgs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; color: var(--hu-text); }

.pev-recap { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.25rem; border-radius: 1rem; background: var(--hu-primary-soft); color: var(--hu-primary-dark); text-decoration: none; font-weight: 600; transition: background-color 0.15s; }
.pev-recap:hover { background: var(--hu-green-soft); filter: brightness(0.97); }
.pev-recap span:nth-child(2) { flex: 1; display: grid; gap: 0.15rem; color: var(--hu-ink); font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; }
.pev-recap small { font: 500 0.72rem/1 "DM Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hu-primary); }

.pev-dside { position: sticky; top: 7rem; }
@media (max-width: 900px) { .pev-dside { position: static; } }
.pev-facts { padding: 1.35rem; border-radius: 1.1rem; background: var(--hu-surface); border: 1px solid var(--hu-line); box-shadow: var(--hu-shadow-sm); }
.pev-facts dl { margin: 0; display: grid; gap: 1rem; }
.pev-facts dt { display: flex; align-items: center; gap: 0.4rem; font: 500 0.72rem/1.2 "DM Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hu-soft); }
.pev-facts dt .material-symbols-outlined { color: var(--hu-primary); font-size: 1.05rem; }
.pev-facts dd { margin: 0.3rem 0 0; display: grid; gap: 0.2rem; font-weight: 600; color: var(--hu-ink); line-height: 1.4; }
.pev-facts dd small { font-weight: 400; color: var(--hu-text-soft); }
.pev-facts dd a { font-weight: 500; font-size: 0.88rem; color: var(--hu-primary); }
.pev-actions { display: grid; gap: 0.55rem; margin-top: 1.35rem; padding-top: 1.2rem; border-top: 1px solid var(--hu-line); }
.pev-link { font-size: 0.9rem; font-weight: 600; color: var(--hu-primary); text-decoration: none; }
.pev-link:hover { text-decoration: underline; }
.pev-contact { display: grid; gap: 0.2rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--hu-line); font-size: 0.9rem; }
.pev-contact p { margin: 0 0 0.2rem; color: var(--hu-soft); }
.pev-contact a { color: var(--hu-primary); word-break: break-all; }
.pev-related { padding: 0 0 4.5rem; display: grid; gap: 1.25rem; }

html[data-theme="dark"] .pev-flag--postponed, html[data-theme="dark"] .pev-alert--postponed, html[data-theme="dark"] .pev-preview { background: rgba(245, 158, 11, 0.16); color: #FCD34D; }
html[data-theme="dark"] .pev-flag--cancelled, html[data-theme="dark"] .pev-alert--cancelled { background: rgba(239, 68, 68, 0.16); color: #FCA5A5; }

/* ---------- events list on the news page's card grid (events.html): status tags beside the place ---------- */
.pub-rcard-tag.pev-tag { font-weight: 600; }
.pev-tag--live { color: #0f6843; background: #e3f4ea; }
.pev-tag--warn { color: #8a5a00; background: #fbf0d9; }
.pev-tag--off { color: #9b2c2c; background: #fbe4e4; }
