/* ─────────────────────────────────────────────────────────────────────
 *  FQPS overrides — styles for components added after the Webflow
 *  export. Loaded LAST in layout.tsx so it can win specificity ties
 *  against the legacy Webflow CSS.
 *
 *  Conventions:
 *  - Class names match what the React components emit.
 *  - Colours and spacing reuse Webflow's CSS variables when possible.
 * ─────────────────────────────────────────────────────────────────── */

/* ── Blog filters (app/blog/BlogFilters.tsx) ─────────────────────── */
.blog-filters-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.blog-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f5f5f4;
  border-radius: 12px;
}
.blog-search-field input[type='search'] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
  padding: 4px 0;
}
.blog-search-field input[type='search']::-webkit-search-cancel-button {
  display: none;
}
.blog-search-field button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  color: #6b7280;
  padding: 0 4px;
}

.blog-filters-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.blog-filters-meta button.link {
  background: none;
  border: 0;
  cursor: pointer;
  color: #b50038;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}

.blog-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.blog-category-pill:hover {
  border-color: rgba(0, 0, 0, 0.32);
}
.blog-category-pill.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}
.blog-category-pill .paragraph-x-small {
  opacity: 0.6;
  font-size: 11px;
}

/* ── Blog TOC (app/blog/post/[slug]/BlogTableOfContents.tsx) ─────── */
.blog-toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border-left: 2px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
}
.blog-toc .fs-toc_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fs-toc_link-wrapper {
  position: relative;
}
.fs-toc_link-wrapper.is-h3 {
  padding-left: 14px;
}
.fs-toc_link-wrapper.is-h4 {
  padding-left: 28px;
}
.fs-toc_link {
  display: inline-block;
  position: relative;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.4;
  padding: 4px 0 4px 12px;
  transition: color 0.15s ease;
}
.fs-toc_link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.15s ease;
}
.fs-toc_link:hover {
  color: #111827;
}
.fs-toc_link.w--current {
  color: #b50038;
  font-weight: 500;
}
.fs-toc_link.w--current::before {
  background: #b50038;
}

/* ── Event booking sidebar card (app/sqe-events/[slug]/page.tsx) ─── */
.event-book-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.event-book-card .button-primary,
.event-book-card .button-simple-outline {
  align-self: stretch;
  text-align: center;
}

/* ── Author hero (app/blog/author/[slug]/page.tsx) ───────────────── */
.blog-author-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-author-header .blog-avatar.large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-author-header .blog-avatar.large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
