/* =========================================================
   RESUME PAGE
   The paper itself intentionally uses fixed light colors (not the
   site's theme tokens) so it always looks like a real resume and
   prints correctly regardless of which site theme is active.
   ========================================================= */

.resume-body {
  background: var(--color-bg);
  min-height: 100vh;
}

.resume-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  /* Solid background on purpose (no backdrop-filter): a sticky element
     using backdrop-filter here rendered as a solid black bar, hiding its
     own contents, on some Chrome/Windows GPU driver combinations. */
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}
.resume-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  transition: color 0.3s var(--ease-cinematic);
}
.resume-back svg { width: 16px; height: 16px; }
.resume-back:hover { color: var(--color-ink); }

.resume-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 5vh, 4rem) var(--gutter) clamp(3rem, 8vh, 6rem);
}

.resume-paper {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  color: #22201c;
  border-radius: var(--radius-m);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.r-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 1.8rem;
}
.r-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #14130f;
  margin: 0 0 0.3rem;
}
.r-role {
  font-size: 0.98rem;
  color: #5a564c;
  margin: 0;
  max-width: 32ch;
}
.r-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  text-align: right;
}
.r-contact li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #4a463e;
}
.r-contact li:empty { display: none; }
.r-contact svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--color-orange); }
.r-contact a { color: inherit; }
.r-contact a:hover { color: var(--color-orange); }

.r-section { margin-bottom: 1.8rem; }
.r-section:last-child { margin-bottom: 0; }
.r-section h2 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  margin: 0 0 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e4e0d6;
}
.r-section > p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #3a362e;
  margin: 0;
}

.r-item { margin-bottom: 1.3rem; }
.r-item:last-child { margin-bottom: 0; }
.r-item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.4rem;
}
.r-item-head h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: #14130f;
  margin: 0;
}
.r-item-head h3 span { font-weight: 500; color: #6b6559; }
.r-period {
  font-size: 0.8rem;
  color: #8a867c;
  white-space: nowrap;
}
.r-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3a362e;
  margin: 0;
}
.r-item ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.r-item ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3a362e;
}
.r-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-orange);
}

.r-item-intro {
  font-size: 0.9rem;
  font-style: italic;
  color: #6b6559;
  margin: 0 0 0.5rem;
}

.r-availability {
  font-weight: 700;
  margin-top: 0.2rem;
}

.r-skills-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.r-skills-table tr { border-bottom: 1px solid #efece4; }
.r-skills-table tr:last-child { border-bottom: none; }
.r-skills-table th,
.r-skills-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0;
}
.r-skills-table th {
  width: 32%;
  font-weight: 700;
  color: #14130f;
  padding-right: 1rem;
  white-space: nowrap;
}
.r-skills-table td { color: #3a362e; }

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  /* zero page margin leaves no room for Chrome's own default print
     header (date) and footer (page title/URL) — .resume-paper adds
     its own padding below so the content isn't flush to the edge */
  @page { margin: 0; }
  .resume-toolbar { display: none; }
  .resume-body { background: #ffffff; }
  .resume-wrap { padding: 0; }
  .resume-paper {
    max-width: none;
    box-shadow: none;
    border-radius: 0;
    padding: 15mm 12mm;
  }
}

@media (max-width: 620px) {
  .r-header { flex-direction: column; }
  .r-contact { align-items: flex-start; text-align: left; }
}
