.research-hero,
.research-card,
.timeline-item,
.deadline-item,
.quick-link,
.research-btn,
.research-filter-grid input,
.research-filter-grid select {
  box-sizing: border-box;
}

.template-research-home .container,
.template-research-index .container,
.template-research-venue .container,
.template-research-deadlines .container {
  max-width: 1180px;
}

.research-hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
  margin: 26px 0 22px;
}

.research-kicker {
  margin: 0 0 10px;
  color: var(--site-accent-soft, #5b84ff);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.research-hero h1,
.research-card h1,
.research-card h2,
.timeline-item h3 {
  margin: 0;
}

.research-subtitle,
.venue-full-name,
.venue-card p,
.timeline-item p {
  margin: 8px 0 0;
  color: rgba(225, 232, 246, 0.78);
  line-height: 1.6;
}

.research-alert-card,
.research-card {
  border: 1px solid rgba(114, 144, 220, 0.18);
  border-radius: 20px;
  background: rgba(9, 14, 28, 0.68);
  box-shadow: 0 18px 48px rgba(4, 8, 18, 0.24);
  backdrop-filter: blur(10px);
}

.research-alert-card {
  padding: 18px 20px;
}

.research-card {
  padding: 22px;
  margin-bottom: 20px;
}

.research-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card-head,
.venue-card-head,
.timeline-head,
.source-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-head {
  margin-bottom: 16px;
}

.card-head a,
.research-link,
.deadline-item,
.quick-link,
.timeline-item a,
.source-row a {
  color: inherit;
  text-decoration: none;
}

.list-stack,
.source-log,
.timeline-list,
.callout-list {
  display: grid;
  gap: 12px;
}

.deadline-item,
.quick-link,
.callout-item {
  border-radius: 16px;
  border: 1px solid rgba(120, 150, 220, 0.16);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
}

.deadline-item:hover,
.quick-link:hover,
.research-link:hover {
  border-color: rgba(120, 170, 255, 0.34);
  color: var(--site-accent-soft, #7aa5ff);
}

.deadline-title {
  display: block;
  font-weight: 700;
}

.deadline-meta,
.source-row-meta,
.source-row-excerpt,
.empty-state {
  color: rgba(206, 217, 235, 0.68);
  font-size: 0.95rem;
}

.quick-links,
.venue-actions,
.meta-grid,
.venue-detail-side {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-link,
.research-btn,
.research-link,
.status-chip,
.verify-chip,
.rank-chip,
.source-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
}

.research-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: center;
}

.deadline-filter {
  grid-template-columns: minmax(180px, 1fr) auto auto;
}

.research-filter-grid input,
.research-filter-grid select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(120, 150, 220, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 0 14px;
}

.research-btn {
  min-height: 46px;
  border: 0;
  background: linear-gradient(135deg, var(--site-accent-soft, #6f95ff), var(--site-accent, #4d72f0));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.venue-card,
.timeline-item {
  overflow: hidden;
}

.venue-desc {
  margin: 0;
  line-height: 1.7;
}

.cycle-box,
.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-list div,
.cycle-box div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(130, 154, 198, 0.12);
}

.detail-list.compact div {
  padding: 8px 0;
}

.detail-list strong,
.cycle-box strong {
  color: rgba(214, 226, 243, 0.88);
}

.venue-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}

.status-chip {
  background: rgba(123, 144, 184, 0.16);
  color: #d8e4ff;
}

.status-active,
.status-open {
  background: rgba(52, 176, 117, 0.18);
  color: #a7f0c8;
}

.status-upcoming,
.status-unverified,
.verify-chip {
  background: rgba(255, 192, 85, 0.16);
  color: #ffd98d;
}

.status-closed,
.status-error {
  background: rgba(231, 95, 95, 0.18);
  color: #ffb0b0;
}

.status-notified,
.status-published,
.rank-chip,
.source-tag {
  background: rgba(98, 129, 232, 0.18);
  color: #b9cbff;
}

.source-row-detailed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(130, 154, 198, 0.12);
}

.source-row-detailed > *:nth-child(3),
.source-row-detailed > *:nth-child(4) {
  grid-column: 1 / -1;
}

.empty-state {
  padding: 8px 0;
}

.research-link.subtle {
  opacity: 0.78;
}

:root[data-theme='light'] .research-subtitle,
:root[data-theme='light'] .venue-full-name,
:root[data-theme='light'] .venue-card p,
:root[data-theme='light'] .timeline-item p,
:root[data-theme='light'] .deadline-meta,
:root[data-theme='light'] .source-row-meta,
:root[data-theme='light'] .source-row-excerpt,
:root[data-theme='light'] .empty-state {
  color: rgba(26, 47, 76, 0.72);
}

:root[data-theme='light'] .research-alert-card,
:root[data-theme='light'] .research-card {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(77, 116, 196, 0.14);
  box-shadow: 0 18px 40px rgba(50, 78, 128, 0.08);
}

:root[data-theme='light'] .deadline-item,
:root[data-theme='light'] .quick-link,
:root[data-theme='light'] .callout-item,
:root[data-theme='light'] .research-filter-grid input,
:root[data-theme='light'] .research-filter-grid select {
  background: rgba(245, 249, 255, 0.82);
  border-color: rgba(88, 124, 194, 0.16);
}

@media (max-width: 980px) {
  .research-hero,
  .research-grid.two-col,
  .venue-grid,
  .research-filter-grid,
  .deadline-filter,
  .venue-detail-hero {
    grid-template-columns: 1fr;
    display: grid;
  }

  .venue-detail-side,
  .timeline-head,
  .venue-card-head,
  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .research-card,
  .research-alert-card {
    padding: 18px;
  }

  .detail-list div,
  .cycle-box div {
    flex-direction: column;
  }
}
