/* ── Resume Page ── */
.r {
  max-width: 760px;
  margin: 0 auto;
}

/* Header */
.r-header {
  text-align: center;
  margin-bottom: 3rem;
}
.r-name {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}
.r-tagline {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0 0 1rem;
}
.r-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.r-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.r-links a:hover {
  color: #0f172a;
  border-bottom-color: #0f172a;
}

/* Sections */
.r-section {
  margin-bottom: 2.5rem;
}
.r-section > h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

/* Timeline */
.r-timeline {
  position: relative;
  padding-left: 24px;
}
.r-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e2e8f0;
}
.r-item {
  position: relative;
  margin-bottom: 1.2rem;
}
.r-dot {
  position: absolute;
  left: -24px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #94a3b8;
  z-index: 1;
}
.r-item:first-child .r-dot {
  background: #3b82f6;
  border-color: #3b82f6;
}

/* Cards */
.r-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  transition: box-shadow 0.2s;
}
.r-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.r-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.r-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: #1e293b;
}
.r-org {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.r-org-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}
.r-date {
  font-size: 0.82rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.r-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  list-style: none;
}
.r-card li {
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 0.35rem;
}
.r-card li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}
.r-card a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.r-card a:hover {
  border-bottom-color: #3b82f6;
}

/* Education grid */
.r-edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.r-edu-card {
  padding: 1.2rem 1.4rem;
}
.r-edu-card .r-date {
  display: block;
  margin-top: 0.5rem;
}

/* Skill tags */
.r-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.r-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #475569;
  font-weight: 500;
  transition: all 0.2s;
}
.r-tag:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* ── Dark mode ── */
html[data-user-color-scheme="dark"] .r-name { color: #e2e8f0; }
html[data-user-color-scheme="dark"] .r-tagline { color: #94a3b8; }
html[data-user-color-scheme="dark"] .r-links a { color: #94a3b8; }
html[data-user-color-scheme="dark"] .r-links a:hover { color: #e2e8f0; border-bottom-color: #e2e8f0; }
html[data-user-color-scheme="dark"] .r-section > h2 { color: #64748b; border-bottom-color: #334155; }
html[data-user-color-scheme="dark"] .r-timeline::before { background: #334155; }
html[data-user-color-scheme="dark"] .r-dot { background: #1e293b; border-color: #64748b; }
html[data-user-color-scheme="dark"] .r-item:first-child .r-dot { background: #3b82f6; border-color: #3b82f6; }
html[data-user-color-scheme="dark"] .r-card { background: #1e293b; }
html[data-user-color-scheme="dark"] .r-card:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
html[data-user-color-scheme="dark"] .r-card h3 { color: #e2e8f0; }
html[data-user-color-scheme="dark"] .r-org { color: #94a3b8; }
html[data-user-color-scheme="dark"] .r-org-sub { color: #64748b; }
html[data-user-color-scheme="dark"] .r-date { color: #64748b; }
html[data-user-color-scheme="dark"] .r-card li { color: #94a3b8; }
html[data-user-color-scheme="dark"] .r-card li::before { background: #475569; }
html[data-user-color-scheme="dark"] .r-tag { background: #1e293b; color: #94a3b8; }
html[data-user-color-scheme="dark"] .r-tag:hover { background: #334155; color: #e2e8f0; }

/* ── Mobile ── */
@media (max-width: 640px) {
  .r-name { font-size: 1.8rem; }
  .r-top { flex-direction: column; gap: 0.2rem; }
  .r-edu-grid { grid-template-columns: 1fr; }
}
