/* Event Content Hub – single speaker and session pages (hub layout).
   Colours come from Settings › Cards colours (CSS variables on .ech-page). Brand styles that
   target h1.entry-title, .tec-speaker-details and .tec-session-header still apply. */
.ech-page {
	--ech-title: #290240;
	--ech-accent: #CC3073;
	--ech-divider: #E5AB35;
	--ech-text: #462E56;
	--ech-muted: #727272;
	--ech-border: #D6DADD;
	--ech-radius: 12px;
	--ech-page-width: 1400px; /* matches the site's content width (/programming/); override in theme CSS if needed */
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ech-page-width);
	flex: 1 0 auto; /* the theme lays out body as a flex column, which would otherwise shrink this to fit */
	align-self: center;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 64px) 20px clamp(40px, 6vw, 80px);
	color: var(--ech-text);
}
.ech-page *, .ech-page *::before, .ech-page *::after { box-sizing: border-box; }
.ech-page img { max-width: 100%; height: auto; }

/* ---------- Speaker ---------- */
/* Profile card (photo, name, role, links) on the left; bio on the right. */
.ech-speaker__intro {
	display: grid;
	grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.ech-speaker__card { min-width: 0; }
.ech-speaker__main { min-width: 0; }

.ech-speaker__photo { margin: 0 0 18px; width: 100%; }
.ech-speaker__photo img {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: none !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center 25%;
	border-radius: var(--ech-radius);
	background: #F2F3F5;
}

.ech-page h1.ech-speaker__name { margin: 0 0 0.3em !important; font-size: 1.75rem !important; letter-spacing: 0.04em !important; line-height: 1.1 !important; overflow-wrap: break-word; }
.ech-page p.ech-speaker__role { margin: 0 0 0.8em !important; font-size: 1.1em !important; font-weight: 600; line-height: 1.3; }
.ech-speaker__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; padding-top: 0.8em; border-top: 1px solid var(--ech-border); font-size: 0.95em; }
.ech-speaker__bio { padding-top: 4px; }
.ech-speaker__pronouns { color: var(--ech-muted); }
.ech-speaker__linkedin { display: inline-flex; align-items: center; gap: 4px; color: var(--ech-accent); font-weight: 600; text-decoration: none; }
.ech-speaker__linkedin:hover, .ech-speaker__linkedin:focus { text-decoration: underline; }
.ech-speaker__linkedin .dashicons { font-size: 20px; width: 20px; height: 20px; }
.ech-speaker__logo { display: block; width: auto !important; max-width: 140px !important; max-height: 48px; object-fit: contain; }
.ech-speaker__bio { line-height: 1.7; font-size: 1.1em; }
.ech-speaker__bio > :first-child { margin-top: 0; }
.ech-speaker__bio > :last-child { margin-bottom: 0; }

/* Section headings */
.ech-page h2.ech-section-title {
	margin: 0 0 0.8em !important;
	padding-top: 0 !important;
	padding-bottom: 0.4em;
	border-bottom: 2px solid var(--ech-divider);
	font-size: 1.5rem !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.1em !important;
	line-height: 1.2 !important;
}
.ech-speaker__sessions, .ech-session__speakers, .ech-session__sponsors { margin-top: clamp(32px, 5vw, 56px); }

/* Session cards on a speaker page */
.ech-session-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.ech-session-list li { margin: 0; padding: 0; }
.ech-session-card {
	display: flex; flex-direction: column; gap: 6px; height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--ech-border);
	border-left: 5px solid var(--ech-room, var(--ech-accent));
	border-radius: 8px;
	background: #fff;
	text-decoration: none !important;
	transition: box-shadow .15s ease, transform .15s ease;
}
.ech-session-card:hover, .ech-session-card:focus { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.ech-session-card__title { color: var(--ech-title); font-weight: 700; font-size: 1.05em; line-height: 1.3; }
.ech-session-card__when { color: var(--ech-text); font-size: 0.85em; }
.ech-session-card__room { color: var(--ech-muted); font-size: 0.8em; text-transform: uppercase; letter-spacing: .06em; }

/* Back / footer links */
.ech-page__back { margin: 0 0 1em; font-size: 0.9em; }
.ech-page__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: clamp(32px, 5vw, 56px) 0 0 !important; font-size: 0.95em; }
.ech-page .ech-page__back a, .ech-page .ech-page__links a { color: var(--ech-accent) !important; font-weight: 600; text-decoration: none; }
.ech-page__back a:hover, .ech-page__links a:hover { text-decoration: underline; }

/* ---------- Session ---------- */
.ech-session__header { margin-bottom: 1.5em; }
.ech-page h1.ech-session__title { margin: 0 0 0.5em !important; font-size: 2em !important; font-weight: 600 !important; letter-spacing: 0.04em !important; line-height: 1.2 !important; overflow-wrap: break-word; }
.ech-session__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 0.95em; }
.ech-session__meta li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.ech-session__meta .dashicons { color: var(--ech-muted); font-size: 18px; width: 18px; height: 18px; }
.ech-session__duration { color: var(--ech-muted); }
.ech-chip {
	display: inline-block; padding: 4px 12px; border-radius: 999px;
	background: var(--ech-room, var(--ech-title)); color: #fff;
	font-size: 0.8em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
}
.ech-chip--outline { background: transparent; color: var(--ech-text); border: 1px solid var(--ech-border); }
.ech-page .ech-session__description { font-size: 1.1em; line-height: 1.5rem; padding: 1em 0; }

/* Speaker cards on a session page */
.ech-speaker-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ech-speaker-card { margin: 0; padding: 0; }
.ech-speaker-card__link, .ech-speaker-card > .ech-speaker-card__photo { text-decoration: none !important; }
.ech-speaker-card__link, .ech-speaker-card:not(:has(a)) {
	display: flex; align-items: center; gap: 16px; height: 100%;
	padding: 14px; border: 1px solid var(--ech-border); border-radius: 10px; background: #fff;
	transition: box-shadow .15s ease;
}
.ech-speaker-card__link:hover, .ech-speaker-card__link:focus { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ech-speaker-card__photo { flex: 0 0 auto; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: #F2F3F5; display: flex; align-items: center; justify-content: center; }
.ech-speaker-card__photo img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: center 25%; border-radius: 50%; display: block; border: 0 !important; }
.ech-speaker-card__initials { font-size: 2em; font-weight: 700; color: var(--ech-muted); }
.ech-speaker-card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ech-speaker-card__name { color: var(--ech-accent); font-weight: 700; line-height: 1.25; }
.ech-speaker-card__role { color: var(--ech-text); font-size: 0.88em; line-height: 1.35; }

/* Sponsors */
.ech-sponsor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.ech-sponsor { display: inline-flex; align-items: center; }
.ech-sponsor img { max-height: 70px; max-width: 200px !important; width: auto !important; object-fit: contain; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
	.ech-speaker__intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.ech-speaker__photo { max-width: 220px; }
	.ech-speaker__meta { padding-bottom: 0.8em; border-bottom: 1px solid var(--ech-border); }
	.ech-session-list, .ech-speaker-cards { grid-template-columns: minmax(0, 1fr); }
	.ech-speaker-card__photo { width: 64px; height: 64px; }
}
