/*
 * Web3 Event Intelligence — public design system.
 * Dark, minimal, data-driven. Bloomberg-style intelligence × modern SaaS × Web3.
 * All rules are scoped under .wei-scope and prefixed wei- so themes are untouched.
 */

.wei-scope {
	/* Tokens inherit the active theme's design system when it exposes one
	   (Web3Pie's --w3p-* vars); the fallbacks are WEI's own dark palette. */
	--wei-bg: var(--w3p-bg, #070A0F);
	--wei-surface: var(--w3p-surface, #0D1118);
	--wei-surface-2: var(--w3p-surface-2, #121923);
	--wei-border: var(--w3p-border, #202936);
	--wei-primary: var(--w3p-accent, #C6F432);
	--wei-primary-hover: var(--w3p-accent-hover, #D9FF5E);
	--wei-on-primary: var(--w3p-accent-ink, #070A0F);
	--wei-accent: var(--w3p-accent-2, #19D3AE);
	--wei-warning: #F5B942;
	--wei-danger: #F45B69;
	--wei-text: var(--w3p-text, #F4F7FA);
	--wei-secondary: var(--w3p-text-secondary, #9AA6B2);
	--wei-muted: var(--w3p-muted, #687482);
	--wei-radius: 12px;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--wei-text);
	background: var(--wei-bg);
	border-radius: var(--wei-radius);
	padding: 24px;
	margin: 0 auto;
	max-width: 1200px;
	line-height: 1.55;
	font-size: 15px;
	box-sizing: border-box;
}

/* Light mode: follows the theme's [data-theme="light"] switch. */
[data-theme="light"] .wei-scope {
	--wei-bg: var(--w3p-bg, #FFFFFF);
	--wei-surface: var(--w3p-surface, #F6F8FB);
	--wei-surface-2: var(--w3p-surface-2, #EDF1F6);
	--wei-border: var(--w3p-border, #DCE3EC);
	--wei-text: var(--w3p-text, #0B1017);
	--wei-secondary: var(--w3p-text-secondary, #4A5665);
	--wei-muted: var(--w3p-muted, #6B7887);
	--wei-accent: var(--w3p-accent-2, #0F9C80);
}
[data-theme="light"] .wei-scope .wei-event-card,
[data-theme="light"] .wei-scope .wei-person-card {
	background: var(--wei-surface);
}
/* Lime is a display colour, never type on light backgrounds. */
[data-theme="light"] .wei-scope .wei-event-card-link,
[data-theme="light"] .wei-scope .wei-section-more,
[data-theme="light"] .wei-scope .wei-datalist dd a { color: var(--w3p-accent-text, #6B8C00) !important; }

.wei-scope .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* No trailing blank space: the WEI block ends flush with its last section. */
.wei-scope > :last-child,
.wei-scope .wei-section:last-child,
.wei-scope .wei-cta:last-child { margin-bottom: 0; }

/* ------------------------------------------------- Futuristic ambient layer */
.wei-scope {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(600px 320px at 15% -5%, rgba(198, 244, 50, 0.14), transparent 65%),
		radial-gradient(520px 300px at 90% 8%, rgba(25, 211, 174, 0.08), transparent 60%),
		linear-gradient(rgba(198, 244, 50, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(198, 244, 50, 0.035) 1px, transparent 1px);
	background-size: auto, auto, 44px 44px, 44px 44px;
}
.wei-scope > * { position: relative; z-index: 1; }

/* 3D tilt (JS sets --wei-rx / --wei-ry on mousemove; falls back gracefully). */
.wei-event-card,
.wei-person-card {
	transform: perspective(900px) rotateX(var(--wei-rx, 0deg)) rotateY(var(--wei-ry, 0deg)) translateZ(0);
	transform-style: preserve-3d;
	will-change: transform;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	background: linear-gradient(160deg, var(--wei-surface), var(--wei-surface-2));
}
.wei-event-card:hover { box-shadow: 0 18px 40px -18px rgba(198, 244, 50, 0.45), 0 0 0 1px rgba(198, 244, 50, 0.25); }
.wei-person-card:hover { box-shadow: 0 14px 32px -16px rgba(198, 244, 50, 0.4); }
.wei-button { box-shadow: 0 6px 22px -8px rgba(198, 244, 50, 0.55); }
.wei-button:hover { box-shadow: 0 8px 28px -8px rgba(217, 255, 94, 0.7); }
.wei-stat-value {
	background: linear-gradient(120deg, var(--wei-text) 30%, var(--wei-primary-hover) 70%, var(--wei-accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Animated gradient frame for the Intelligence panel. */
.wei-intel { position: relative; background-clip: padding-box; }
.wei-intel::before {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: 11px;
	padding: 1px;
	background: conic-gradient(from var(--wei-angle, 0deg), rgba(198, 244, 50, 0.9), rgba(25, 211, 174, 0.5), rgba(198, 244, 50, 0.1), rgba(198, 244, 50, 0.9));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: wei-rotate-border 6s linear infinite;
	pointer-events: none;
}
@property --wei-angle {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}
@keyframes wei-rotate-border {
	to { --wei-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
	.wei-intel::before { animation: none; }
	.wei-event-card, .wei-person-card { transform: none !important; transition: none; }
	.wei-event-card:hover { transform: none !important; }
}

/* --------------------------------------------------------------------- FAQ */
.wei-faq { display: flex; flex-direction: column; gap: 10px; }
.wei-faq-item {
	background: var(--wei-surface-2);
	border: 1px solid var(--wei-border);
	border-radius: 8px;
	overflow: hidden;
}
.wei-faq-item[open] { border-color: var(--wei-primary); }
.wei-faq-q {
	cursor: pointer;
	padding: 13px 16px;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--wei-text);
	list-style: none;
	position: relative;
	padding-right: 40px;
}
.wei-faq-q::-webkit-details-marker { display: none; }
.wei-faq-q::after {
	content: '+';
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wei-primary);
	font-size: 18px;
	font-weight: 700;
}
.wei-faq-item[open] .wei-faq-q::after { content: '–'; }
.wei-faq-a { padding: 0 16px 14px; color: var(--wei-secondary); font-size: 14px; }

.wei-tag-accent { color: var(--wei-accent); border-color: rgba(25, 211, 174, 0.4); }

.wei-scope *,
.wei-scope *::before,
.wei-scope *::after { box-sizing: border-box; }

/* Themes commonly underline every content link — never inside WEI components,
   in any state. Kept as one explicit block so it can't be out-specified. */
.wei-scope a,
.wei-scope a:link,
.wei-scope a:visited,
.wei-scope a:hover,
.wei-scope a:focus,
.wei-scope a:active,
.wei-scope a *,
.wei-scope a:hover * {
	text-decoration: none !important;
	text-decoration-line: none !important;
	box-shadow: none;
	border-bottom: 0;
}
.wei-scope a { color: var(--wei-text); }
.wei-scope a:hover { color: var(--wei-primary-hover); }
/* Prose keeps readable underlines — that's body copy, not UI. */
.wei-scope .wei-prose a,
.wei-scope .wei-prose a:hover { text-decoration: underline !important; }
.wei-scope a:focus-visible { outline: 2px solid var(--wei-primary); outline-offset: 2px; }
.wei-scope h1, .wei-scope h2, .wei-scope h3 { color: var(--wei-text); margin: 0; line-height: 1.25; }
.wei-scope p { margin: 0 0 10px; }
.wei-scope img { max-width: 100%; height: auto; }

.wei-mono {
	font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
	letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ Inputs */
.wei-input {
	background: var(--wei-surface-2);
	border: 1px solid var(--wei-border);
	color: var(--wei-text);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	width: 100%;
	transition: border-color 0.15s ease;
}
.wei-input:focus {
	outline: none;
	border-color: var(--wei-primary);
	box-shadow: 0 0 0 2px rgba(198, 244, 50, 0.25);
}
.wei-input::placeholder { color: var(--wei-muted); }
.wei-scope select.wei-input { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239AA6B2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }

.wei-button,
.wei-scope a.wei-button {
	display: inline-block;
	background: var(--wei-primary);
	color: var(--wei-on-primary) !important;
	border: 1px solid var(--wei-primary);
	border-radius: 999px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
	text-decoration: none !important;
	line-height: 1.3;
	white-space: nowrap;
}
.wei-button:hover,
.wei-scope a.wei-button:hover {
	background: var(--wei-primary-hover);
	border-color: var(--wei-primary-hover);
	color: var(--wei-on-primary) !important;
	transform: translateY(-1px);
}
.wei-scope .wei-button-ghost,
.wei-scope a.wei-button-ghost {
	background: transparent;
	color: var(--wei-text) !important;
	border-color: var(--wei-border);
}
.wei-scope .wei-button-ghost:hover,
.wei-scope a.wei-button-ghost:hover { background: var(--wei-surface-2); border-color: var(--wei-primary); color: var(--wei-text) !important; }

/* -------------------------------------------------------------- Navigation */
.wei-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: 8px;
	padding: 12px 18px;
	flex-wrap: wrap;
}
.wei-nav-brand {
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.06em;
	color: var(--wei-text) !important;
	display: flex;
	align-items: baseline;
	gap: 10px;
}
.wei-nav-brand-sub {
	font-size: 11px;
	font-weight: 500;
	color: var(--wei-muted);
	letter-spacing: 0.03em;
	display: none;
}
@media (min-width: 900px) { .wei-nav-brand-sub { display: inline; } }
.wei-nav-links { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
.wei-nav-links a { color: var(--wei-secondary); font-size: 14px; font-weight: 500; }
.wei-nav-links a:hover { color: var(--wei-text); }
.wei-nav-actions { display: flex; gap: 10px; }
.wei-nav-toggle { display: none; background: none; border: 1px solid var(--wei-border); color: var(--wei-text); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
@media (max-width: 720px) {
	.wei-nav-toggle { display: block; margin-left: auto; }
	.wei-nav-links, .wei-nav-actions { display: none; width: 100%; }
	.wei-nav.is-open .wei-nav-links { display: flex; flex-direction: column; gap: 10px; }
	.wei-nav.is-open .wei-nav-actions { display: flex; }
}

/* ------------------------------------------------------------------ Ticker */
.wei-ticker {
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid var(--wei-border);
	border-radius: 999px;
	background: var(--wei-surface);
	overflow: hidden;
	margin-bottom: 28px;
}
.wei-ticker-label {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	background: var(--wei-primary);
	color: var(--wei-on-primary);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	padding: 8px 16px;
}
.wei-ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.wei-ticker-track {
	display: flex;
	gap: 26px;
	white-space: nowrap;
	padding-left: 18px;
	animation: wei-marquee 46s linear infinite;
}
.wei-ticker:hover .wei-ticker-track { animation-play-state: paused; }
.wei-ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.wei-ticker-date { color: var(--wei-primary); font-weight: 600; font-size: 11.5px; }
.wei-ticker-name { color: var(--wei-text); font-weight: 500; }
.wei-ticker-place { color: var(--wei-muted); }
@keyframes wei-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.wei-ticker-track { animation: none; }
	.wei-ticker-viewport { overflow-x: auto; }
}

/* -------------------------------------------------------------------- Hero */
.wei-hero { padding: 56px 0 36px; text-align: center; }
.wei-hero-kicker { color: var(--wei-primary); font-size: 11px; letter-spacing: 0.24em; margin-bottom: 16px; font-weight: 600; }
.wei-hero-title { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; line-height: 1.1; }
.wei-hero-gradient {
	display: inline-block;
	background: linear-gradient(100deg, var(--wei-primary) 0%, var(--wei-accent) 70%, #4FC3F7 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
@media (max-width: 900px) { .wei-hero-title { font-size: 34px; } }
@media (max-width: 520px) { .wei-hero-title { font-size: 27px; } .wei-hero { padding: 32px 0 24px; } }
.wei-hero-sub { color: var(--wei-secondary); max-width: 620px; margin: 0 auto 26px; font-size: 15.5px; }
.wei-hero-search { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.wei-hero-search .wei-input { flex: 1; border-radius: 999px; padding-left: 18px; }
.wei-hero-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.wei-pill {
	background: var(--wei-surface-2);
	border: 1px solid var(--wei-border);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--wei-text) !important;
	transition: border-color 0.15s ease;
}
.wei-pill:hover { border-color: var(--wei-primary); color: var(--wei-text) !important; }

/* -------------------------------------------------------------- Stat cards */
.wei-statcards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin: 8px 0 44px;
}
@media (max-width: 860px) { .wei-statcards { grid-template-columns: repeat(2, 1fr); } }
.wei-statcard {
	display: block;
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: var(--wei-radius);
	padding: 26px 22px;
	text-decoration: none !important;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
a.wei-statcard:hover { border-color: var(--wei-primary); transform: translateY(-2px); }
.wei-statcard-value {
	display: block;
	font-size: 34px;
	font-weight: 700;
	color: var(--wei-text);
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.wei-statcard-label {
	display: block;
	margin-top: 8px;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wei-muted);
	font-weight: 600;
}

/* ------------------------------------------------- Upcoming split layout */
.wei-eyebrow { color: var(--wei-primary); font-size: 10.5px; letter-spacing: 0.16em; font-weight: 600; margin-bottom: 6px; }
.wei-home-split { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 980px) { .wei-home-split { grid-template-columns: 1fr; } }
.wei-home-split-main { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .wei-home-split-main { grid-template-columns: 1fr; } }
.wei-home-split-side { display: flex; flex-direction: column; gap: 16px; }

.wei-event-row {
	display: flex;
	gap: 14px;
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: var(--wei-radius);
	padding: 16px;
	transition: border-color 0.15s ease;
}
.wei-event-row:hover { border-color: var(--wei-primary); }
.wei-daybadge {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: var(--wei-surface-2);
	border: 1px solid var(--wei-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
}
.wei-daybadge-day { font-size: 19px; font-weight: 700; color: var(--wei-primary); }
.wei-daybadge-month { font-size: 9.5px; letter-spacing: 0.1em; color: var(--wei-muted); font-weight: 600; }
.wei-event-row-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wei-event-row-title { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.wei-event-row-title a { color: var(--wei-text) !important; }
.wei-event-row-title a:hover { color: var(--wei-primary) !important; }
.wei-event-row-text { color: var(--wei-secondary); font-size: 12.8px; margin: 0; }
.wei-event-row-meta { color: var(--wei-muted); font-size: 11.5px; margin: auto 0 0; padding-top: 6px; }

.wei-next {
	background:
		radial-gradient(340px 180px at 85% 0%, rgba(198, 244, 50, 0.12), transparent 70%),
		var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: var(--wei-radius);
	padding: 22px;
}
.wei-next-title { font-size: 21px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.wei-next-title a { color: var(--wei-text) !important; }
.wei-next-title a:hover { color: var(--wei-primary) !important; }
.wei-next-meta { color: var(--wei-secondary); font-size: 13px; margin-bottom: 18px; }
.wei-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wei-countdown-unit {
	background: var(--wei-surface-2);
	border: 1px solid var(--wei-border);
	border-radius: 9px;
	padding: 10px 4px;
	text-align: center;
}
.wei-countdown-value { display: block; font-size: 20px; font-weight: 700; color: var(--wei-primary); line-height: 1.1; }
.wei-countdown-label { display: block; font-size: 8.5px; letter-spacing: 0.1em; color: var(--wei-muted); margin-top: 4px; font-weight: 600; }

.wei-promo {
	background: linear-gradient(150deg, rgba(198, 244, 50, 0.1), var(--wei-surface) 60%);
	border: 1px solid var(--wei-border);
	border-radius: var(--wei-radius);
	padding: 22px;
}
.wei-promo-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.wei-promo-text { color: var(--wei-secondary); font-size: 13.2px; margin-bottom: 16px; }

/* ------------------------------------------------------------- Blog cards */
.wei-post-card {
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: var(--wei-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s ease;
}
.wei-post-card:hover { border-color: var(--wei-primary); }
.wei-post-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(140deg, var(--wei-surface-2), rgba(198, 244, 50, 0.08));
	overflow: hidden;
}
.wei-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Varied tints so image-less posts still read as distinct cards. */
.wei-post-card:nth-child(3n+1) .wei-post-media { background: linear-gradient(150deg, rgba(198, 244, 50, 0.16), var(--wei-surface-2) 70%); }
.wei-post-card:nth-child(3n+2) .wei-post-media { background: linear-gradient(150deg, rgba(79, 195, 247, 0.16), var(--wei-surface-2) 70%); }
.wei-post-card:nth-child(3n+3) .wei-post-media { background: linear-gradient(150deg, rgba(151, 106, 255, 0.18), var(--wei-surface-2) 70%); }
.wei-post-cat {
	position: absolute;
	top: 12px; left: 12px;
	background: rgba(7, 10, 15, 0.78);
	border: 1px solid var(--wei-border);
	border-radius: 999px;
	padding: 4px 11px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--wei-text);
}
.wei-post-body { padding: 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.wei-post-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.wei-post-title a { color: var(--wei-text) !important; }
.wei-post-title a:hover { color: var(--wei-primary) !important; }
.wei-post-excerpt { color: var(--wei-secondary); font-size: 13px; margin: 0; }
.wei-post-meta { color: var(--wei-muted); font-size: 11px; margin: auto 0 0; padding-top: 6px; }

/* ------------------------------------------------------------ Intelligence */
.wei-intel {
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: 10px;
	padding: 24px;
	margin: 28px 0;
}
.wei-intel-kicker { color: var(--wei-primary); font-size: 11px; letter-spacing: 0.18em; font-weight: 600; margin-bottom: 10px; }
.wei-intel-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.wei-intel-sub { color: var(--wei-secondary); font-size: 13.5px; margin-bottom: 14px; }
.wei-intel-input { resize: vertical; min-height: 76px; }
.wei-intel-ask { width: 100%; margin-top: 12px; }
.wei-intel-ask:disabled { opacity: 0.6; cursor: wait; }
.wei-intel-results { margin-top: 16px; }
.wei-intel-results.is-loading { opacity: 0.45; }
.wei-intel-summary { color: var(--wei-secondary); font-size: 14px; margin-bottom: 14px; }
.wei-intel-summary .wei-mono { color: var(--wei-accent); font-weight: 600; }
.wei-intel-filters { color: var(--wei-muted); }
.wei-intel-filters::before { content: '— '; }

/* ------------------------------------------------------------------- Stats */
.wei-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin: 24px 0;
}
.wei-stat {
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: 8px;
	padding: 18px 14px;
	text-align: center;
}
.wei-stat-value { display: block; font-size: 26px; font-weight: 700; color: var(--wei-text); }
.wei-stat-label { display: block; font-size: 12px; color: var(--wei-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- Sections */
.wei-section { margin: 36px 0; }
.wei-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wei-section-title { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.wei-section-head .wei-section-title { margin-bottom: 0; }
.wei-section-more { color: var(--wei-primary) !important; font-size: 14px; font-weight: 600; }
.wei-section-more:hover { color: var(--wei-primary-hover) !important; }

.wei-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wei-chip {
	background: var(--wei-surface-2);
	border: 1px solid var(--wei-border);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--wei-text) !important;
	transition: border-color 0.15s ease;
}
.wei-chip:hover { border-color: var(--wei-primary); }
.wei-chip-count { color: var(--wei-accent); margin-left: 6px; font-size: 12px; }

.wei-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	background:
		radial-gradient(420px 200px at 12% 0%, rgba(198, 244, 50, 0.1), transparent 70%),
		linear-gradient(135deg, var(--wei-surface) 0%, var(--wei-surface-2) 100%);
	border: 1px solid var(--wei-border);
	border-radius: var(--wei-radius);
	padding: 30px 32px;
	margin: 36px 0 0;
}
.wei-cta-body { flex: 1; min-width: 260px; }
.wei-cta-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.wei-cta-text { color: var(--wei-secondary); margin-bottom: 0; font-size: 14px; }

/* ------------------------------------------------------------------- Grids */
.wei-grid { display: grid; gap: 14px; }
.wei-grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wei-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
/* Featured: exactly two per row, so one or two picks read as a highlight
   rather than a stray narrow card in a three-up grid. */
.wei-grid-featured { grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .wei-grid-featured { grid-template-columns: 1fr; } }
.wei-featured-section { margin: 20px 0 26px; }
.wei-featured-section .wei-section-title { margin-bottom: 12px; }
.wei-featured-section .wei-event-card { padding: 20px; }

/* ------------------------------------------------------------- Event cards */
.wei-event-card {
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: 8px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.wei-event-card:hover { border-color: var(--wei-primary); transform: translateY(-2px); }
.wei-event-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wei-event-card-date { color: var(--wei-primary); font-size: 12px; font-weight: 600; }
.wei-event-card-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.wei-event-card-title a { color: var(--wei-text) !important; }
.wei-event-card-title a:hover { color: var(--wei-primary-hover) !important; }
.wei-event-card-location { color: var(--wei-secondary); font-size: 13px; margin: 0; }
.wei-event-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.wei-tag {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--wei-secondary);
	border: 1px solid var(--wei-border);
	border-radius: 4px;
	padding: 2px 7px;
	background: var(--wei-surface-2);
}
.wei-event-card-meta { color: var(--wei-muted); font-size: 12.5px; margin-top: auto; }
.wei-event-card-meta .wei-mono { color: var(--wei-text); }
.wei-event-card-link { color: var(--wei-primary) !important; font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.wei-event-card-link:hover { color: var(--wei-primary-hover) !important; }
.wei-dot { color: var(--wei-muted); padding: 0 3px; }

.wei-badge {
	font-size: 11px;
	font-weight: 600;
	border-radius: 4px;
	padding: 3px 8px;
	white-space: nowrap;
}
.wei-badge-verified { color: var(--wei-accent); background: rgba(25, 211, 174, 0.1); border: 1px solid rgba(25, 211, 174, 0.35); }
.wei-badge-warning { color: var(--wei-warning); background: rgba(245, 185, 66, 0.1); border: 1px solid rgba(245, 185, 66, 0.35); }
.wei-badge-danger { color: var(--wei-danger); background: rgba(244, 91, 105, 0.1); border: 1px solid rgba(244, 91, 105, 0.35); }
.wei-badge-level { color: var(--wei-secondary); background: var(--wei-surface-2); border: 1px solid var(--wei-border); align-self: flex-start; margin-top: 6px; display: inline-block; }
.wei-badge-featured { color: var(--wei-on-primary); background: var(--wei-primary); border: 1px solid var(--wei-primary); font-weight: 700; }
.wei-event-card.is-featured { border-color: color-mix(in srgb, var(--wei-primary) 45%, var(--wei-border)); }

/* ---------------------------------------------------- People/company cards */
.wei-person-card {
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: 8px;
	transition: border-color 0.15s ease;
}
.wei-person-card:hover { border-color: var(--wei-primary); }
.wei-person-card-inner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.wei-person-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wei-person-card-name { font-weight: 600; font-size: 15px; color: var(--wei-text); }
.wei-person-card-role { color: var(--wei-secondary); font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.wei-avatar {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--wei-surface-2);
	border: 1px solid var(--wei-border);
	overflow: hidden;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wei-avatar-square { border-radius: 8px; }
.wei-avatar-lg { width: 84px; height: 84px; }
.wei-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.wei-avatar-fallback { color: var(--wei-primary); font-weight: 700; font-size: 18px; }
.wei-avatar-lg .wei-avatar-fallback { font-size: 32px; }

.wei-sponsor-item { display: flex; flex-direction: column; }

/* ----------------------------------------------------------------- Filters */
.wei-filters {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 10px;
	margin-bottom: 18px;
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: 8px;
	padding: 14px;
}
@media (max-width: 860px) { .wei-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .wei-filters { grid-template-columns: 1fr; } }

.wei-results.is-loading { opacity: 0.45; pointer-events: none; }
.wei-empty { color: var(--wei-muted); padding: 24px 4px; grid-column: 1 / -1; }

.wei-pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.wei-page-btn {
	background: var(--wei-surface-2);
	border: 1px solid var(--wei-border);
	color: var(--wei-secondary) !important;
	border-radius: 6px;
	min-width: 34px;
	padding: 7px 10px;
	font-size: 13px;
	font-family: 'JetBrains Mono', monospace;
	cursor: pointer;
	text-align: center;
	text-decoration: none !important;
}
.wei-page-btn:hover { border-color: var(--wei-primary); color: var(--wei-text) !important; }
.wei-page-btn.is-active { background: var(--wei-primary); border-color: var(--wei-primary); color: #fff !important; }

/* ------------------------------------------------------------ Detail pages */
.wei-detail { }
.wei-detail-header { display: flex; gap: 28px; justify-content: space-between; align-items: flex-start; padding: 12px 0 24px; border-bottom: 1px solid var(--wei-border); margin-bottom: 24px; flex-wrap: wrap; }
.wei-detail-header-main { flex: 1; min-width: 260px; }
.wei-detail-media { max-width: 340px; border-radius: 8px; overflow: hidden; border: 1px solid var(--wei-border); }
.wei-detail-date { color: var(--wei-accent); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.wei-detail-kicker { color: var(--wei-accent); font-size: 11px; letter-spacing: 0.16em; margin-bottom: 6px; }
.wei-detail-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
@media (max-width: 720px) { .wei-detail-title { font-size: 24px; } }
.wei-detail-sub { color: var(--wei-secondary); font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wei-detail-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.wei-detail-columns { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .wei-detail-columns { grid-template-columns: 1fr; } }
.wei-detail-main, .wei-detail-side { display: flex; flex-direction: column; gap: 18px; }

.wei-panel {
	background: var(--wei-surface);
	border: 1px solid var(--wei-border);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 18px;
}
.wei-detail-columns .wei-panel { margin-bottom: 0; }
.wei-panel-muted { background: transparent; }
.wei-panel-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.wei-panel-count { color: var(--wei-accent); font-size: 13px; }
.wei-prose { color: var(--wei-secondary); font-size: 14.5px; }
.wei-prose p { margin-bottom: 12px; }

.wei-datalist { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.wei-datalist dt { color: var(--wei-muted); font-weight: 500; }
.wei-datalist dd { margin: 0; color: var(--wei-text); }
.wei-datalist dd a { color: var(--wei-primary) !important; }
.wei-break { word-break: break-all; }

.wei-profile-header { display: flex; gap: 20px; align-items: center; padding: 12px 0 24px; border-bottom: 1px solid var(--wei-border); margin-bottom: 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Calendar */
.wei-calendar { background: var(--wei-surface); border: 1px solid var(--wei-border); border-radius: 8px; overflow: hidden; }
.wei-calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--wei-border); }
.wei-calendar-title { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.wei-cal-nav { background: var(--wei-surface-2); border: 1px solid var(--wei-border); color: var(--wei-text); border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.wei-cal-nav:hover { border-color: var(--wei-primary); }
.wei-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.wei-calendar-dow { padding: 8px 6px; text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wei-muted); border-bottom: 1px solid var(--wei-border); }
.wei-calendar-cell { min-height: 86px; border-right: 1px solid var(--wei-border); border-bottom: 1px solid var(--wei-border); padding: 6px; font-size: 12px; }
.wei-calendar-cell:nth-child(7n) { border-right: none; }
.wei-calendar-cell.is-empty { background: var(--wei-bg); }
.wei-calendar-cell.has-events { background: rgba(198, 244, 50, 0.06); }
.wei-calendar-daynum { color: var(--wei-muted); font-size: 11px; display: block; margin-bottom: 4px; }
.wei-calendar-event {
	display: block;
	background: var(--wei-surface-2);
	border-left: 2px solid var(--wei-primary);
	border-radius: 3px;
	color: var(--wei-text) !important;
	font-size: 11px;
	padding: 3px 6px;
	margin-bottom: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wei-calendar-event:hover { background: var(--wei-border); }
.wei-calendar-more { color: var(--wei-muted); font-size: 10.5px; }
@media (max-width: 720px) {
	.wei-calendar-cell { min-height: 52px; }
	.wei-calendar-event { display: none; }
	.wei-calendar-cell.has-events .wei-calendar-daynum { color: var(--wei-primary); font-weight: 700; }
}

/* ------------------------------------------------------------- Submit form */
.wei-submit-form { max-width: 760px; margin: 0 auto; }
.wei-form-intro { color: var(--wei-secondary); margin-bottom: 20px; }
.wei-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
@media (max-width: 620px) { .wei-form-grid { grid-template-columns: 1fr; } }
.wei-form-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.wei-form-field label { font-size: 13px; font-weight: 600; color: var(--wei-secondary); }
.wei-form-wide { grid-column: 1 / -1; }
.wei-form-actions { margin-top: 8px; }
.wei-form-message { font-size: 14px; min-height: 20px; }
.wei-form-message.is-success { color: var(--wei-accent); }
.wei-form-message.is-error { color: var(--wei-danger); }
.wei-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------- Directory */
.wei-directory-grid { margin-bottom: 6px; }
