/* ============================================================================
   Legacy v2 CSS overrides
   Layout and typography are primarily handled by Tailwind CDN.
   This file styles components generated by Jekyll plugins and residual v2 markup.
   ============================================================================ */

/* --- Prose styles --- */
.prose h1 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
  font-weight: 700;
}

.prose h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 2rem;
  font-weight: 600;
  border-top: 1px solid #e5e7eb;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
}

.prose h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.75rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0;
}

.prose p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.75rem;
  margin: 1rem 0;
}

.prose hr {
  visibility: hidden;
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  color: #374151;
  margin-bottom: 0.25rem;
}

.prose blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  font-style: italic;
  color: #6b7280;
}

/* ============================================================================
   PUBLICATIONS — jekyll-scholar generated HTML
   ============================================================================ */

.publications { margin-top: 0; }
.publications ol, .publications ul { list-style: none; padding: 0; margin: 0; }
.publications ol > li, .publications ul > li { border-bottom: 1px solid #e5e7eb; }
.publications ol > li:last-child, .publications ul > li:last-child { border-bottom: none; }

/* Bib search input */
#bibsearch, .bibsearch-form-input, .search {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

#bibsearch:focus, .bibsearch-form-input:focus {
  border-color: #a72126;
}

/* Legacy bib-content styles (kept for compatibility) */

.bib-btn {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280 !important;
  background: #f6f6f7;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.bib-btn:hover {
  color: #a72126 !important;
  border-color: #a72126;
}

.bib-hidden {
  display: none;
  margin-top: 0.75rem;
  padding: 1rem;
  background: #f6f6f7;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #6b7280;
}

.bib-hidden.is-open { display: block; }

/* Badges kept for jekyll-scholar compatibility */

/* Year headers */
.publications h2.year,
.publications h2.bibliography {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.025em;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* ============================================================================
   NEWS — jekyll news.liquid table overrides
   Matches Blog.vue: divide-y, py-12, text-2xl bold titles
   ============================================================================ */

.news { margin-top: 0; }
.news .table-responsive { overflow-x: visible; }
.news .table { width: 100%; border-collapse: collapse; }
.news .table tr { border-bottom: 1px solid #e5e7eb; }
.news .table tr:last-child { border-bottom: none; }

.news .table th, .news .table td {
  padding: 3rem 0;
  vertical-align: baseline;
  text-align: left;
}

.news .table th {
  font-weight: 400;
  color: #9ca3af;
  white-space: nowrap;
  padding-right: 2rem;
  font-size: 0.875rem;
  width: 1%;
}

.news .table td { color: #1f2937; }

.news .table td a.news-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 2rem;
  color: #111827;
  text-decoration: none;
}

.news .table td a.news-title:hover { color: #111827; }

/* ============================================================================
   CHOOSER PAGE
   ============================================================================ */

.chooser { max-width: 1180px; margin: 0 auto; padding: 5rem 1.5rem; text-align: center; }
.chooser__title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.chooser__subtitle { color: #6b7280; margin: 0 auto 2.5rem; font-size: 1rem; max-width: 40rem; }
.chooser__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; align-items: stretch; }
@media (max-width: 900px) { .chooser__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .chooser__grid { grid-template-columns: 1fr; align-items: start; } }
.chooser__card { display: block; min-width: 0; border: 2px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; text-decoration: none !important; color: inherit !important; transition: border-color 0.2s, box-shadow 0.2s; }
.chooser__card:hover { border-color: #a72126; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.chooser__card h2 { font-size: 1.15rem; margin: 1rem 0 0.4rem; }
.chooser__card p { font-size: 0.88rem; color: #6b7280; line-height: 1.5; }
.chooser__preview { height: 100px; border-radius: 6px; overflow: hidden; }
.chooser__preview--v1 { background: linear-gradient(135deg, #0f7b8a, #0a5e6a); }
.chooser__mock-nav { height: 12px; background: rgba(0,0,0,0.2); }
.chooser__mock-hero { height: 30px; margin: 8px 15px; background: rgba(255,255,255,0.25); border-radius: 3px; }
.chooser__mock-cards { display: flex; gap: 6px; padding: 0 15px; }
.chooser__mock-cards span { flex: 1; height: 20px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.chooser__preview--v2 { background: #fafafa; border: 1px solid #e5e5e5; }
.chooser__mock-nav-minimal { height: 10px; border-bottom: 1px solid #e0e0e0; }
.chooser__mock-text { padding: 12px 20px; }
.chooser__mock-heading { display: block; height: 10px; width: 60%; background: #333; border-radius: 2px; margin-bottom: 8px; }
.chooser__mock-line { display: block; height: 6px; width: 90%; background: #ddd; border-radius: 2px; margin-bottom: 5px; }
.chooser__mock-line--short { width: 55%; }
.chooser__preview--v3 { background: linear-gradient(145deg, #fbf8f3, #eee6dc); border: 1px solid #e6dbce; }
.chooser__mock-nav-editorial { height: 12px; background: rgba(23,50,58,0.08); border-bottom: 1px solid rgba(23,50,58,0.08); }
.chooser__mock-heading--v3 { width: 72%; height: 14px; background: #20343a; margin-bottom: 10px; }
.chooser__mock-pill { display: block; height: 14px; width: 42%; background: rgba(162,79,57,0.22); border-radius: 999px; margin-bottom: 10px; }

@media (max-width: 560px) {
  .chooser {
    padding: 2.6rem 1rem 3rem;
  }

  .chooser__title {
    font-size: 1.38rem;
    line-height: 1.25;
  }

  .chooser__subtitle {
    font-size: 0.94rem;
    margin-bottom: 1.8rem;
  }

  .chooser__grid {
    gap: 1rem;
  }

  .chooser__card {
    padding: 1.15rem;
  }

  .chooser__card h2 {
    margin-top: 0.85rem;
    font-size: 1.04rem;
  }

  .chooser__card p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .chooser__preview {
    height: 84px;
  }

  .chooser__mock-text {
    padding: 10px 16px;
  }
}

/* ============================================================================
   PROJECT CARDS — jekyll projects.liquid overrides
   ============================================================================ */

a.lab-project-card-link { text-decoration: none !important; color: inherit !important; }
.card.hoverable { background: #f6f6f7; border-radius: 0.5rem; overflow: hidden; transition: box-shadow 0.3s ease-in-out; border: none; }
.card.hoverable:hover { box-shadow: 0 10px 15px -3px rgba(167,33,38,0.3), 0 4px 6px -4px rgba(167,33,38,0.2); }
.card-img-top { width: 100%; height: auto; }
.card-body { padding: 1rem; }
.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; color: #1f2937; }
.card-title a { color: inherit; text-decoration: none; }
.card-text { font-size: 0.88rem; color: #6b7280; line-height: 1.6; }
