/* ── Shared styles for research area detail pages ── */

/* ── Breadcrumb ── */
.breadcrumb {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--gray-400);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.breadcrumb:hover { color: var(--blue); }

/* ── Page header overrides for area pages ── */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .badge {
  margin-bottom: 1rem;
  display: inline-block;
}

.page-header p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 720px;
}

/* ── Area sections ── */
.area-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.area-section:last-child {
  border-bottom: none;
  padding-bottom: 3rem;
}

/* ── Topics grid (outcomes modelling) ── */
.topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.topics-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.topic-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  transition: border-color 0.2s;
}

.topic-card:hover { border-color: var(--border-mid); }

.topic-card-accent {
  background: #f7f9fc;
  border-color: rgba(24, 95, 165, 0.15);
}

.topic-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}

.topic-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ── Project cards ── */
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.project-card:hover { border-color: var(--border-mid); }
.project-card:last-child { margin-bottom: 0; }

.project-card-top {
  display: grid;
  grid-template-columns: 1fr 220px;
}

.project-card-text {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-header h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  line-height: 1.4;
}

.funding-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.85;
}

.project-meta {
  font-size: 0.82rem;
  color: var(--gray-400);
}

.project-card-text p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.project-card-text a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.project-card-text a:hover { text-decoration: underline; }

.project-card-img {
  border-left: 1px solid var(--border);
  overflow: hidden;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-footer {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #f7f9fc;
  font-size: 0.82rem;
  color: var(--gray-600);
  flex-wrap: wrap;
}

.project-card-footer a {
  color: var(--blue);
  text-decoration: none;
}

.project-card-footer a:hover { text-decoration: underline; }

/* ── Publications placeholder ── */
.placeholder-note {
  font-size: 0.9rem;
  color: var(--gray-400);
}

.placeholder-note a {
  color: var(--blue);
  text-decoration: none;
}

.placeholder-note a:hover { text-decoration: underline; }

/* ── Exhibition card ── */
.exhibition-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 1.5rem;
}

.exhibition-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.exhibition-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.exhibition-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.exhibition-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.exhibition-desc:last-of-type {
  margin-bottom: 1.25rem;
}

.exhibition-desc em {
  font-style: italic;
  font-family: var(--font-serif);
}

/* ── Horizontal scroll strip ── */
.exhibition-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.exhibition-scroll::-webkit-scrollbar { height: 4px; }
.exhibition-scroll::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 2px; }
.exhibition-scroll::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.scroll-item {
  flex: 0 0 260px;
  height: 195px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-item-pdf {
  background: var(--blue-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 180px;
  transition: background 0.2s;
}

.scroll-item-pdf:hover { background: var(--blue-mid); }

.scroll-pdf-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  text-align: center;
  padding: 1rem;
}

.scroll-pdf-inner svg { opacity: 0.7; }

.scroll-pdf-inner span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue-dark);
  line-height: 1.4;
}

.scroll-pdf-cta {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: var(--blue) !important;
  margin-top: 4px;
}

@media (max-width: 700px) {
  .scroll-item { flex: 0 0 200px; height: 150px; }
  .scroll-item-pdf { flex: 0 0 140px; }
}

/* ── Publication list ── */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pub-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: background 0.15s;
}

.pub-item:last-child { border-bottom: none; }
.pub-item:hover { background: var(--gray-50); }

.pub-item p {
  font-size: 0.88rem;
  color: var(--gray-900);
  line-height: 1.6;
  margin-bottom: 4px;
}

.pub-item .pub-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.pub-item .pub-meta a {
  color: var(--blue);
  text-decoration: none;
}

.pub-item .pub-meta a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .topics-grid,
  .topics-grid-3 {
    grid-template-columns: 1fr;
  }

  .project-card-top {
    grid-template-columns: 1fr;
  }

  .project-card-img {
    height: 160px;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .project-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}
