/* Shared layout for CV page */

.cv-toolbar {
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cv-title {
  margin: 0;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.cv-toggle {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(15, 23, 42, 0.18));
  background: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  color: #374151;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.cv-toggle:hover {
  background: #f9fafb;
}

/* PDF view frame */
.pdf-wrap {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 0 20px 24px;
}

.pdf-frame {
  width: 100%;
  height: calc(100vh - 190px);
  border: none;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  background: #111827;
}

.cv-hint {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* BLOG VIEW: CV entries as “papers” */

/* Grid of cards */
.cards {
  max-width: 1120px;
  margin: 16px auto 32px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Card container */
.paper.blog-card {
  background: var(--paper-bg, #fdfaf4);
  border-radius: 16px;
  border: 1px solid var(--paper-border, rgba(17, 24, 39, 0.12));
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* Inner layout: media + body */
.paper-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
}

@media (max-width: 720px) {
  .paper-inner {
    grid-template-columns: 1fr;
  }
}

.paper-media {
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.paper-cover {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

/* Body text section */
.paper-body {
  padding: 12px 16px 14px;
}

.paper-title {
  margin: 2px 0 4px;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 400;
}

.paper-date {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--paper-muted, #6b6b6b);
}

/* Rich teaser content */
.paper-rich {
  font-size: 0.92rem;
  color: var(--paper-text, #221f1a);
}

.paper-rich p {
  margin: 4px 0;
}

.paper-rich ul {
  margin: 4px 0 4px 18px;
  padding: 0;
}

/* badges row */
.paper-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.paper-badges .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
  text-decoration: none;
  color: #1f2937;
  background: #f9fafb;
}

/* stretched link (whole card clickable) */
.paper.blog-card .stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
  color: inherit;
}

/* Entry page shared muted style */
.muted {
  color: #6b7280;
}
