/* Catalogue and speaker profiles. Shared colours and typography come from style.css. */
.speaker-catalog [hidden] { display: none !important; }
.edition-preview { padding: 30px 34px; border-radius: var(--radius); background: var(--brand-tint); display: flex; align-items: center; gap: 32px; margin-bottom: 64px; }
.edition-preview__year { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; color: var(--brand-strong); line-height: 1.1; }
.edition-preview__body { flex: 1; }
.edition-preview h2 { font-size: 1.35rem; line-height: 1.4; }
.edition-preview p { margin-top: 8px; color: var(--ink-2); max-width: 55ch; }
.edition-preview .btn { flex: none; }
.edition-speakers { margin-bottom: 64px; }
.edition-speakers h2 { margin-bottom: 28px; }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; }
.catalog-toolbar h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.35; }
.catalog-count { color: var(--muted); margin-top: 8px; font-size: .9rem; }
.catalog-filter { display: flex; align-items: center; gap: 12px; }
.catalog-filter label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.catalog-filter select { appearance: none; min-width: 190px; min-height: 48px; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 44px 10px 16px; background: var(--bg); color: var(--brand-deep); font: inherit; cursor: pointer; }
.catalog-filter__select { position: relative; }
.catalog-filter__select svg { width: 17px; height: 17px; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); pointer-events: none; color: var(--brand-strong); }
.catalog-filter select:focus-visible, .speaker:focus-visible, .profile-years a:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.catalog-card__years { margin-top: 12px; font-size: .82rem; line-height: 1.7; color: var(--muted); }
.catalog-card__years span { color: var(--brand-strong); font-weight: 500; }
.catalog-card .speaker__photo img { object-position: center 25%; }
.catalog-card .speaker__info { padding-bottom: 16px; }
.catalog-card h3 { text-wrap: balance; }
.catalog-card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.94); font-size: .73rem; font-weight: 600; color: var(--brand-deep); }
.speaker:focus-visible .speaker__overlay, .speaker:focus-visible .speaker__photo::after { opacity: 1; transform: none; }
.profile-years { margin-top: 24px; }
.profile-years__label { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 10px; }
.profile-years__links { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-years a { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 6px; font-size: .85rem; color: var(--brand-strong); transition: background .2s; }
.profile-years a:hover { background: var(--bg-soft); }
.profile-layout .speaker-detail__photo img { object-position: center 25%; }
.profile-layout .speaker-detail__photo { box-shadow: none; }
.profile-content { min-width: 0; }
.profile-content h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.3; }
.profile-bio-date { font-size: .8rem; color: var(--muted); margin: 10px 0 22px; }
.profile-content .prose { max-width: 68ch; }
.profile-content .prose p { overflow-wrap: anywhere; }
.profile-talks { margin-top: 52px; }
.profile-talks__intro { color: var(--muted); margin-top: 12px; margin-bottom: 28px; font-size: .9rem; }
.talk-year { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.talk-year__number { color: var(--brand-strong); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.35; }
.talk-entry + .talk-entry { margin-top: 22px; }
.talk-entry h4 { font-family: var(--font-sans); font-size: 1.04rem; line-height: 1.6; font-weight: 600; letter-spacing: 0; }
.talk-entry__type { color: var(--brand-strong); font-size: .78rem; font-weight: 600; display: block; margin-bottom: 4px; }
.talk-entry__note { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.profile-sections { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.profile-sections a { font-size: .9rem; font-weight: 600; color: var(--brand-strong); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.profile-sections a:hover { border-color: var(--brand-strong); }
.profile-page .speaker-nav [hidden] { display: none; }
@media (hover: none) {
  .catalog-card .speaker__overlay, .catalog-card .speaker__photo::after { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .edition-preview { flex-wrap: wrap; gap: 20px; }
  .edition-preview .btn { margin-left: 0; }
}
@media (max-width: 640px) {
  .edition-preview { padding: 24px; margin-bottom: 44px; align-items: start; }
  .edition-preview__year { font-size: 2.6rem; }
  .edition-preview__body { flex-basis: 100%; }
  .catalog-toolbar { align-items: start; }
  .catalog-filter { width: 100%; justify-content: space-between; }
  .catalog-filter__select { flex: 1; max-width: 250px; }
  .catalog-filter select { width: 100%; min-width: 0; }
  .talk-year { grid-template-columns: 58px minmax(0,1fr); gap: 14px; padding: 22px 0; }
  .talk-year__number { font-size: 1.25rem; }
  .profile-layout .speaker-detail__media { max-width: none; }
  .profile-layout .speaker-detail__photo { max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .speaker, .speaker__photo img, .speaker__overlay { transition: none; }
}
