/* College Archive (Portfolio) page: old-style journal look on the dark resume theme.
   Uses the colors from /style.css (:root). */
.archive .arch-container { max-width: 1040px; }
.arch-section { padding: 26px 0 6px; }
.arch-h {
  margin: 0 0 16px;
  font-family: Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent-soft);
  border-bottom: 1px solid #23385a;
  padding-bottom: 8px;
}
.arch-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; border-bottom: 1px solid #23385a; margin-bottom: 14px; }
.arch-bar .arch-h { border: 0; margin: 0; }
.controls { padding-bottom: 6px; font-size: 14px; color: #8da2bf; }
.controls select {
  margin-left: 6px; padding: 4px 8px; font: inherit; color: #dbe4f0;
  background: #14223a; border: 1px solid #2b4466; border-radius: 6px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.chips[hidden], .controls[hidden] { display: none; }
.chip {
  font: inherit; font-size: 13px; padding: 3px 12px; cursor: pointer;
  color: #b9c8e0; background: #14223a; border: 1px solid #2b4466; border-radius: 999px;
}
.chip:hover { background: #1b2f50; }
.chip.is-on { background: var(--accent); color: #06162b; border-color: var(--accent); font-weight: 700; }

.ex-notice {
  margin: 20px 0 0; padding: 10px 14px; font-size: 14.5px;
  color: #dbe4f0; background: #13233d; border: 1px dashed #4a77b0; border-radius: 8px;
}

/* one post (card) */
.post {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  margin-bottom: 18px;
  background: #121f35;
  border: 1px solid #22385a;
  border-radius: 10px;
}
.post[hidden] { display: none; }
.post--featured {
  grid-template-columns: 340px minmax(0, 1fr);
  background: linear-gradient(135deg, #142644 0%, #111d33 100%);
  border-color: #2e4f7d;
  border-left: 4px solid var(--accent);
}
.post-thumb {
  position: relative; display: block; align-self: start;
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: rotate(-0.6deg);          /* a little "paper on the desk" feel */
  transition: transform 0.15s;
}
.post-thumb:hover { transform: rotate(0deg) scale(1.01); }
.post-thumb img { width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: top; }
.post-thumb .ex-badge { position: absolute; top: 8px; left: 8px; }

.ex-badge {
  display: inline-block; padding: 1px 9px; font-family: Roboto, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: #06162b; background: #9fcbff; border-radius: 4px; vertical-align: middle;
}
.post-meta { margin: 0 0 4px; font-size: 13px; letter-spacing: 0.4px; color: #8da2bf; }
.post-meta .ex-badge { margin-left: 6px; }
.post-title {
  margin: 0 0 10px; text-align: left;
  font-family: Georgia, "Times New Roman", serif;  /* journal-style headline */
  font-size: 22px; font-weight: 700; letter-spacing: 0; line-height: 1.3; color: #fff;
}
.post--featured .post-title { font-size: 27px; }
.post-abstract { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #cfd9e8; }
.abs-label { font-style: italic; font-weight: 700; color: var(--accent-soft); }
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; }
.post-tags li { font-size: 12px; padding: 1px 9px; color: #b9c8e0; border: 1px solid #2b4466; border-radius: 999px; }
body.dark .post-dl {
  display: inline-block; padding: 7px 16px; font-weight: 700; font-size: 15px;
  color: #06162b; background: var(--accent); border-radius: 6px; text-decoration: none;
}
body.dark .post-dl:hover { background: var(--accent-soft); }
.post-dl .size { font-weight: 400; font-size: 13px; }
.empty { color: #8da2bf; font-style: italic; }

/* "Coming soon" card (shown while the archive has no real papers) */
.soon {
  display: flex; align-items: center; gap: 28px;
  margin: 10px 0 30px; padding: 28px 30px;
  background: linear-gradient(135deg, #142644 0%, #111d33 100%);
  border: 1px solid #2e4f7d; border-left: 4px solid var(--accent); border-radius: 10px;
}
.soon-art { flex: 0 0 120px; width: 120px; height: auto; }
.soon-kicker {
  margin: 0 0 4px; font-family: Roboto, sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent-soft);
}
.soon-title {
  margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif;
  font-size: 26px; font-weight: 700; line-height: 1.3; color: #fff;
}
.soon-text { margin: 0 0 6px; font-size: 16px; line-height: 1.6; color: #cfd9e8; }

@media (max-width: 767px) {
  .soon { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .soon-art { width: 90px; flex-basis: auto; }
  .soon-title { font-size: 22px; }

  .post, .post--featured { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
  .post-thumb { transform: none; max-height: 220px; }
  .post-thumb img { object-fit: cover; object-position: top; max-height: 220px; }
  .post-meta .ex-badge { display: none; }   /* the thumbnail already shows it */
  .post-title { font-size: 20px; }
  .post--featured .post-title { font-size: 22px; }
}

/* series cards (several parts, one card) */
.series-badge { display: inline-block; vertical-align: middle; margin-right: 6px; padding: 2px 8px; border-radius: 999px;
  font: 600 11px/1.4 Roboto, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent-soft, rgba(80,160,255,.18)); color: var(--accent, #6cb4ff); }
.post-dls { display: flex; flex-wrap: wrap; gap: 8px; }
