/* ── Typography ── */
h1, h2, h3 {
  font-weight: 600;
}

/* ── Navbar ── */
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Code blocks ── */
pre {
  border-radius: 6px;
  border: 1px solid var(--bs-border-color);
}

/* ── Tables ── */
table {
  width: 100%;
  margin: 1.5rem 0;
}

th {
  font-weight: 600;
}

/* ── Callout overrides ── */
.callout-note {
  border-left: 4px solid #3498db;
}

/* ── Dividers ── */
hr {
  margin: 1.5rem 0 4rem 0;
  opacity: 0.2;
}

/* ── Footer ── */
.nav-footer {
  font-size: 0.875rem;
  opacity: 0.75;
}

/* ── Category badge ── */
.badge-wip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  background: #f39c1222;
  color: #f39c12;
}

.badge-talk {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  background: #9b59b622;
  color: #9b59b6;
}

.badge-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  background: #3498db22;
  color: #3498db;
}

.topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

/* ── Home page two-column layout ── */
body.home-page #title-block-header {
  display: none !important;
}

.home-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
  min-height: calc(100vh - 60px);
}

/* Left sidebar */
.profile-sidebar {
  position: sticky;
  top: 4.5rem;
  padding: 2rem 2rem 2rem 1.5rem;
  border-right: 1px solid var(--bs-border-color);
  display: flex;
  flex-direction: column;
}

/* Profile photo — img is inside a <p> wrapper from Quarto */
.profile-sidebar > p:first-of-type {
  margin: 0 0 1rem 0;
  text-align: center;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

/* Profile name — span inside a <p> */
.profile-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

/* Profile role — span inside a <p> */
.profile-role {
  display: block;
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 1rem;
}

/* Topic badges in sidebar */
.profile-sidebar .topic-badges {
  margin-bottom: 1rem;
}

/* Badges inside topic-badges are in a <p>, remove its margin */
.profile-sidebar .topic-badges > p {
  margin: 0;
}

/* Bio — span inside a <p> */
.profile-bio {
  display: block;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bs-body-color);
  margin-bottom: 1.25rem;
}

/* Remove default paragraph margins inside sidebar */
.profile-sidebar > p {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

/* Links section */
.profile-links {
  margin-bottom: 1.5rem;
}

.profile-links p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0;
  font-size: 0.875rem;
}

.profile-links p i {
  font-size: 0.9rem;
  color: var(--bs-secondary-color, #6c757d);
  flex-shrink: 0;
}

.profile-links p a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.profile-links p a:hover {
  color: #3498db;
}

/* Section nav */
.sidebar-nav {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 1rem;
}

.sidebar-nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 0.5rem;
}

.sidebar-nav p {
  margin: 0.2rem 0;
}

.sidebar-nav p a {
  font-size: 0.875rem;
  color: var(--bs-body-color);
  text-decoration: none;
}

.sidebar-nav p a:hover {
  color: #3498db;
}

/* Right article list panel */
.article-list {
  padding: 2rem 3rem;
  min-width: 0;
}

.article-list h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.article-list h2 a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.article-list h2 a:hover {
  color: #3498db;
}

.article-list hr {
  margin: 1.75rem 0;
}

.article-list > p:last-of-type a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3498db;
  text-decoration: none;
}

/* Hide sidebar nav on small screens */
@media (max-width: 768px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.5rem;
  }

  .article-list {
    padding: 1.5rem;
  }
}

/* ── Talk thumbnails ── */
.talk-thumbnail {
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  display: block;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ── Post metadata line (date · tags) ── */
.post-meta {
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
