/* Dispatches — article reading and listing styles */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: #42d1f4; text-decoration: none; }

/* Article header */
.dispatch-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2.5rem;
  max-width: 720px;
}
.article-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-family: 'Inter', sans-serif;
}
.article-meta {
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}
.lang-switcher {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lang-link {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgba(66,209,244,0.35);
  border-radius: 20px;
  color: #42d1f4;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.2s;
}
.lang-link:hover {
  background: rgba(66,209,244,0.1);
  text-decoration: none;
  color: #42d1f4;
}
.lang-link.active {
  background: rgba(66,209,244,0.15);
  cursor: default;
}

/* Article body */
.article-body {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.82;
  color: #c9d8e8;
}
.article-body p { margin: 0 0 1.5em; }
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-family: 'Inter', sans-serif;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #42d1f4;
  margin: 2.2rem 0 0.75rem;
  font-family: 'Inter', sans-serif;
}
.article-body blockquote {
  border-left: 3px solid #42d1f4;
  margin: 1.8rem 0;
  padding: 0.25rem 1.5rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.article-body a { color: #42d1f4; }
.article-body a:hover { color: #5edeca; }
.article-body ul, .article-body ol {
  padding-left: 1.6rem;
  margin-bottom: 1.5em;
}
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: rgba(255,255,255,0.9); font-weight: 600; }
.article-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 2.5rem 0;
}

/* Author note box */
.author-note {
  background: rgba(66,209,244,0.04);
  border: 1px solid rgba(66,209,244,0.15);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-top: 3rem;
  max-width: 720px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.author-note strong { color: rgba(255,255,255,0.75); }

/* References box */
.references {
  max-width: 720px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.references h2 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  font-family: 'Inter', sans-serif;
}
.references ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.references li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}
.references a { color: rgba(66,209,244,0.75); font-size: 0.88rem; }

/* Restricted/placeholder notice */
.restricted-notice {
  max-width: 720px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
  color: rgba(255,255,255,0.5);
}
.restricted-notice .btn { margin-top: 1.5rem; }

/* ─── Dispatch listing (index page) ─── */
.dispatch-index-header {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}
.dispatch-index-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0 0.5rem;
}
.dispatch-index-header p {
  color: rgba(255,255,255,0.45);
  margin: 0;
  font-size: 1rem;
}

.dispatch-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}
.dispatch-group-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dispatch-item {
  display: block;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.75rem;
  text-decoration: none;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s ease;
}
.dispatch-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(66,209,244,0.25);
  transform: translateX(4px);
  text-decoration: none;
}
.dispatch-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dispatch-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.3rem;
  line-height: 1.35;
}
.dispatch-item-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.dispatch-item-desc {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.5);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}
.badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.badge-en { background: rgba(66,209,244,0.15); color: #42d1f4; }
.badge-fr { background: rgba(94,234,212,0.12); color: #5edeca; }
.badge-pair {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.5);
  margin-left: 0.4rem;
  vertical-align: middle;
}
