/* Speaker Movement Directory. Change the colors here and everything follows. */
.smd {
	--smd-ink: #292929;
	--smd-paper: #fffffb;
	--smd-green: #9f9c65;
	--smd-moss: #7d7a47;
	--smd-stone: #dcd8d3;
	--smd-sage: #d5d2bd;
	font-family: "Montserrat", system-ui, sans-serif;
	color: var(--smd-ink);
	line-height: 1.6;
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
}
.smd *, .smd *::before, .smd *::after { box-sizing: border-box; }
.smd a { color: var(--smd-ink); text-underline-offset: 3px; }
.smd a:focus-visible, .smd button:focus-visible, .smd input:focus-visible, .smd select:focus-visible, .smd textarea:focus-visible {
	outline: 2px solid var(--smd-ink);
	outline-offset: 2px;
}
.smd-narrow { max-width: 640px; }
.smd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Headings */
.smd .smd-h { font-weight: 900; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 16px; color: var(--smd-ink); }
.smd .smd-h--sm { font-size: 24px; margin-top: 40px; }
.smd .smd-meta { font-size: 14px; color: #5a5a55; }
.smd .smd-help { font-size: 13px; color: #5a5a55; margin: 4px 0 12px; }

/* Buttons */
.smd .smd-btn {
	display: inline-block;
	background: var(--smd-ink);
	color: var(--smd-paper);
	font: 600 15px/1 "Montserrat", system-ui, sans-serif;
	padding: 14px 22px;
	border: 2px solid var(--smd-ink);
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
}
.smd .smd-btn:hover { background: var(--smd-moss); border-color: var(--smd-moss); color: var(--smd-paper); }
.smd .smd-btn--quiet { background: transparent; color: var(--smd-ink); margin-left: 8px; }
.smd .smd-btn--quiet:hover { background: var(--smd-sage); border-color: var(--smd-ink); color: var(--smd-ink); }

/* Forms */
.smd .smd-form label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 16px; }
.smd .smd-form input[type="text"], .smd .smd-form input[type="email"], .smd .smd-form input[type="password"],
.smd .smd-form input[type="search"], .smd .smd-form select, .smd .smd-form textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
	font: 400 16px/1.4 "Montserrat", system-ui, sans-serif; color: var(--smd-ink);
	background: #fff; border: 1.5px solid var(--smd-stone); border-radius: 6px;
}
.smd .smd-form input[type="file"] { margin-top: 6px; font-size: 14px; }
.smd .smd-form .smd-check, .smd .smd-checks .smd-check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0 0 8px; }
.smd .smd-form .smd-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--smd-ink); }
.smd .smd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.smd .smd-row--wrap { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.smd .smd-fieldset { border: 1.5px solid var(--smd-stone); border-radius: 8px; padding: 16px 18px 6px; margin: 8px 0 20px; }
.smd .smd-fieldset legend { font-weight: 700; padding: 0 8px; }
.smd .smd-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; margin-bottom: 12px; }
.smd .smd-headshot { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 20px; }
.smd .smd-headshot .smd-avatar { width: 120px; flex: none; }

.smd .smd-notice { background: var(--smd-sage); border-left: 4px solid var(--smd-moss); padding: 12px 16px; margin: 0 0 24px; border-radius: 4px; }
.smd .smd-notice--err { background: #f3dcd6; border-left-color: #a4372a; }

/* Dashboard */
.smd .smd-dash__top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.smd .smd-dash__links a { margin-left: 16px; font-size: 14px; }
.smd .smd-talklist { list-style: none; padding: 0; margin: 0 0 24px; }
.smd .smd-talklist li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1.5px solid var(--smd-stone); }
.smd .smd-talklist .smd-meta { display: block; }
.smd .smd-talklist__actions a { margin-left: 16px; font-size: 14px; }

/* Avatars: uploaded photo or Gravatar sits over the initials */
.smd .smd-avatar {
	display: block; position: relative; aspect-ratio: 1; overflow: hidden;
	background: var(--smd-sage); border-radius: 6px;
}
.smd .smd-avatar::before {
	content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
	font-weight: 900; font-size: clamp(28px, 5vw, 52px); color: var(--smd-moss);
}
.smd .smd-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; }

/* Directory */
.smd .smd-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.smd .smd-search input[type="search"] { flex: 1 1 260px; padding: 14px 16px; font: 400 16px "Montserrat", system-ui, sans-serif; border: 1.5px solid var(--smd-stone); border-radius: 6px; background: #fff; color: var(--smd-ink); }
.smd .smd-search select { padding: 14px 12px; font: 400 15px "Montserrat", system-ui, sans-serif; border: 1.5px solid var(--smd-stone); border-radius: 6px; background: #fff; color: var(--smd-ink); }
.smd .smd-clear { font-size: 14px; }

.smd .smd-az { display: flex; flex-wrap: wrap; gap: 4px 2px; margin-bottom: 20px; }
.smd .smd-az a, .smd .smd-az span { min-width: 32px; padding: 6px 8px; text-align: center; font-weight: 700; font-size: 14px; border-radius: 4px; text-decoration: none; }
.smd .smd-az span { color: #b4b0a8; }
.smd .smd-az a:hover { background: var(--smd-sage); }
.smd .smd-az a[aria-current] { background: var(--smd-ink); color: var(--smd-paper); }
.smd .smd-count { font-size: 14px; color: #5a5a55; margin: 0 0 8px; }
.smd .smd-empty { padding: 32px 0; }

.smd .smd-group { margin: 0 0 40px; }
.smd .smd-group__letter { font-weight: 900; font-size: clamp(56px, 9vw, 96px); line-height: 1; color: var(--smd-moss); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--smd-green); }
.smd .smd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 22px; margin-top: 20px; }
.smd .smd-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--smd-ink); }
.smd .smd-card .smd-avatar { margin-bottom: 8px; }
.smd .smd-card__name { font-weight: 700; font-size: 18px; line-height: 1.25; }
.smd .smd-card:hover .smd-card__name { text-decoration: underline; text-underline-offset: 3px; }
.smd .smd-card__tag { font-size: 14px; }
.smd .smd-card__match { font-size: 13px; background: var(--smd-sage); padding: 4px 8px; border-radius: 4px; margin-top: 4px; }

.smd .smd-pages ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 32px 0 0; }
.smd .smd-pages a, .smd .smd-pages span { display: block; padding: 8px 14px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.smd .smd-pages .current { background: var(--smd-ink); color: var(--smd-paper); }

/* Chips and links */
.smd .smd-chips, .smd .smd-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.smd .smd-chips a { display: block; background: var(--smd-sage); padding: 4px 12px; border-radius: 999px; font-size: 13px; text-decoration: none; }
.smd .smd-chips a:hover { background: var(--smd-green); color: var(--smd-ink); }
.smd .smd-links a { display: block; border: 1.5px solid var(--smd-ink); padding: 6px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.smd .smd-links a:hover { background: var(--smd-ink); color: var(--smd-paper); }

/* Single speaker */
.smd .smd-profile__head { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; margin-bottom: 32px; }
.smd .smd-profile__name { font-weight: 900; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 8px; }
.smd .smd-profile__tagline { font-size: 20px; margin: 0 0 8px; }
.smd .smd-profile__bio { max-width: 70ch; font-size: 17px; }
.smd .smd-talk { padding: 20px 0; border-top: 1.5px solid var(--smd-stone); max-width: 70ch; }
.smd .smd-talk h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.smd .smd-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 24px; }
.smd .smd-facts dt { font-size: 13px; color: #5a5a55; }
.smd .smd-facts dd { margin: 0; font-weight: 600; }
.smd .smd-byline { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1.5px solid var(--smd-stone); text-decoration: none; }
.smd .smd-byline .smd-avatar { width: 72px; flex: none; }

/* The plugin prints the speaker name itself, so hide the theme's duplicate title */
.single-smd_speaker .entry-header, .single-smd_speaker .page-header, .single-smd_speaker .entry-title,
.single-smd_speaker .post-title { display: none; }

@media (max-width: 680px) {
	.smd .smd-row { grid-template-columns: 1fr; }
	.smd .smd-profile__head { grid-template-columns: 1fr; gap: 20px; }
	.smd .smd-profile__head .smd-avatar { max-width: 220px; }
	.smd .smd-headshot { flex-direction: column; }
}

/* Identity tags: dark, square-cornered, with a green dot. Topic chips stay soft and light. */
.smd .smd-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.smd .smd-tags a { display: flex; align-items: center; gap: 7px; background: var(--smd-ink); color: var(--smd-paper); padding: 5px 11px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.smd .smd-tags a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--smd-green); }
.smd .smd-tags a:hover { background: var(--smd-moss); color: var(--smd-paper); }

/* Sections on a profile */
.smd .smd-block { margin-top: 40px; }
.smd .smd-block .smd-h--sm { margin-top: 0; }
.smd .smd-video { position: relative; aspect-ratio: 16 / 9; max-width: 760px; border-radius: 8px; overflow: hidden; background: var(--smd-ink); }
.smd .smd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.smd .smd-spotify { display: block; width: 100%; max-width: 760px; border: 0; border-radius: 12px; }
.smd .smd-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 8px; }
.smd .smd-review { margin: 0; padding: 26px; background: rgba(213, 210, 189, .45); border-radius: 8px; }
.smd .smd-review blockquote { margin: 0 0 14px; padding: 0; border: 0; font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--smd-ink); }
.smd .smd-review figcaption { font-size: 14px; color: #5a5a55; }
.smd .smd-review-row { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1.5px solid var(--smd-stone); }
.smd .smd-contact { max-width: 720px; padding-top: 32px; border-top: 3px solid var(--smd-green); }
.smd .smd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons row on a profile */
.smd .smd-profile__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.smd .smd-profile__actions .smd-btn--quiet { margin-left: 0; }

/* Directory cards: a gentle lift so it is clear each speaker can be clicked */
.smd .smd-card { transition: transform .25s ease; }
.smd .smd-card .smd-avatar { transition: box-shadow .25s ease; }
.smd .smd-card .smd-avatar img { transition: transform .4s ease; }
.smd .smd-card__cta { margin-top: 6px; font-size: 13px; font-weight: 700; opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s ease; }
.smd .smd-card:hover, .smd .smd-card:focus-visible { transform: translateY(-4px); }
.smd .smd-card:hover .smd-avatar, .smd .smd-card:focus-visible .smd-avatar { box-shadow: 0 12px 26px rgba(41, 41, 41, .16); }
.smd .smd-card:hover .smd-avatar img, .smd .smd-card:focus-visible .smd-avatar img { transform: scale(1.04); }
.smd .smd-card:hover .smd-card__cta, .smd .smd-card:focus-visible .smd-card__cta { opacity: 1; transform: none; }
@media (hover: none) { .smd .smd-card__cta { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.smd .smd-card, .smd .smd-card .smd-avatar, .smd .smd-card .smd-avatar img, .smd .smd-card__cta { transition: none; }
	.smd .smd-card:hover, .smd .smd-card:focus-visible, .smd .smd-card:hover .smd-avatar img { transform: none; }
}
.smd .smd-card .smd-tags a, .smd .smd-card .smd-tags span { display: flex; align-items: center; gap: 7px; background: var(--smd-ink); color: var(--smd-paper); padding: 4px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.smd .smd-card .smd-tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--smd-green); }

/* Prompt shown to free speakers where paid features would be */
.smd .smd-upsell { margin-top: 40px; padding: 28px; background: var(--smd-sage); border-radius: 10px; max-width: 640px; }
.smd .smd-upsell .smd-h { margin-top: 0; }

/* Account settings */
.smd .smd-account { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 24px; }
.smd .smd-panel { border: 1.5px solid var(--smd-stone); border-radius: 10px; padding: 24px; }
.smd .smd-panel .smd-h3 { margin: 0 0 8px; }
.smd .smd-danger { border: 1.5px solid #bdb9a4; border-radius: 10px; padding: 16px 24px; max-width: 640px; }
.smd .smd-danger summary { cursor: pointer; font-weight: 600; }
.smd .smd-danger form { margin-top: 16px; }
