/* Resume page: title and intro (match other category pages) */

.resume-top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.resume-top .page-title {
  grid-column: 1;
  grid-row: 1;
}

.resume-top .resume-download-btn {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.resume-top .page-intro {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0.25rem;
}

.resume-section-controls {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.resume-section-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-subheading);
}

body.light-mode .resume-section-hint {
  color: var(--color-subheading-light);
}

.resume-expand-collapse-wrap {
  display: flex;
  gap: 0.5rem;
}

.resume-expand-collapse-btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 0.0625rem solid rgba(255, 255, 255, 0.35);
  border-radius: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.resume-expand-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

body.light-mode .resume-expand-collapse-btn {
  color: var(--color-heading-light);
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .resume-expand-collapse-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.35);
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 0.0625rem solid rgba(255, 255, 255, 0.35);
  border-radius: 0.25rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.resume-download-btn i {
  font-size: 0.75rem;
}

.resume-download-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

body.light-mode .resume-download-btn {
  color: #1a1a1a;
  background: #e6e6e6;
  border: 0.0625rem solid #c4c4c4;
}

body.light-mode .resume-download-btn:hover {
  background: #dcdcdc;
  border-color: #9f9f9f;
}

.page-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
}

body.light-mode .page-title {
  color: var(--color-heading-light);
}

.resume-top .page-intro,
.page-intro {
  margin: 0 0 2rem 0;
  color: var(--color-subheading);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 64rem;
  text-align: justify;
  text-justify: inter-word;
}

.resume-top .page-intro {
  margin-top: 0.25rem;
}

body.light-mode .page-intro {
  color: var(--color-subheading-light);
}

.resume-subtitle {
  margin: 2rem 0 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-subheading);
}

body.light-mode .resume-subtitle {
  color: var(--color-subheading-light);
}

/* Collapsible sections */
.resume-section {
  margin-top: 2rem;
  max-width: 64rem;
}

.resume-section__summary {
  list-style: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-subheading);
  cursor: pointer;
  padding: 0 0 0 1.25rem;
  position: relative;
  user-select: none;
}

.resume-section__summary::-webkit-details-marker {
  display: none;
}

.resume-section__summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 0.35rem solid transparent;
  border-right: 0.35rem solid transparent;
  border-top: 0.4rem solid currentColor;
  transition: transform 0.2s ease;
}

.resume-section[open] .resume-section__summary::before {
  transform: translateY(-50%) rotate(180deg);
}

body.light-mode .resume-section__summary {
  color: var(--color-subheading-light);
}

.resume-section__content {
  margin-top: 0.5rem;
  padding-left: 0;
}

.resume-statement {
  margin: 0 0 2rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  max-width: 64rem;
  text-align: justify;
  text-justify: inter-word;
}

body.light-mode .resume-statement {
  color: var(--color-heading-light);
}

.resume-skills {
  max-width: 64rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2rem;
}

@media (min-width: 38rem) {
  .resume-skills {
    grid-template-columns: 1fr 1fr;
  }
}

.resume-skills-group {
  margin-bottom: 0;
}

.resume-skills-group__title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

body.light-mode .resume-skills-group__title {
  color: var(--color-heading-light);
}

.resume-skills-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.resume-skills-pill {
  display: inline-block;
  padding: 0.15rem 0.35rem;
  font-size: 0.6875rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 0.0625rem solid rgba(255, 255, 255, 0.35);
  border-radius: 0.2rem;
  white-space: nowrap;
}

body.light-mode .resume-skills-pill {
  color: var(--color-heading-light);
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Work experience */
.resume-work {
  max-width: 64rem;
  margin-bottom: 2rem;
}

.resume-work__entry {
  margin-bottom: 1.5rem;
}

.resume-work__entry:last-child {
  margin-bottom: 0;
}

.resume-work__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.resume-work__role {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

body.light-mode .resume-work__role {
  color: var(--color-heading-light);
}

.resume-work__degree-wrap {
  position: relative;
  display: inline;
  cursor: default;
}

.resume-work__degree-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.35rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  color: var(--color-heading);
  background-color: var(--accent-tooltip);
  border-radius: 0.375rem;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.resume-work__degree-wrap:hover .resume-work__degree-tooltip,
.resume-work__degree-wrap:focus-visible .resume-work__degree-tooltip {
  visibility: visible;
  opacity: 1;
}

.resume-work__dates {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 0.0625rem solid rgba(255, 255, 255, 0.35);
  border-radius: 0.25rem;
}

body.light-mode .resume-work__dates {
  color: var(--color-heading-light);
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

.resume-work__meta {
  margin: 0 0 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--color-subheading);
  line-height: 1.4;
}

body.light-mode .resume-work__meta {
  color: var(--color-subheading-light);
}

.resume-work__list {
  margin: 0 0 0 1rem;
  padding: 0 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #ffffff;
  text-align: justify;
  text-justify: inter-word;
  list-style-type: disc;
  list-style-position: outside;
}

.resume-work__list li {
  margin-bottom: 0.35rem;
}

.resume-work__list li:last-child {
  margin-bottom: 0;
}

body.light-mode .resume-work__list {
  color: var(--color-heading-light);
}

.resume-references-note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #ffffff;
}

body.light-mode .resume-references-note {
  color: var(--color-subheading-light);
}

@media (max-width: 1280px) {
  .resume-work__degree-tooltip {
    display: none !important;
  }

  .resume-top {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .resume-top .page-title,
  .resume-top .resume-download-btn,
  .resume-top .page-intro {
    grid-column: auto;
    grid-row: auto;
  }

  .resume-top .page-intro {
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .resume-top .resume-download-btn {
    align-self: flex-start;
    margin-top: 0;
  }

  .resume-expand-collapse-wrap {
    display: none;
  }

  .resume-section-controls {
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .resume-section-hint {
    text-align: center;
    width: 100%;
  }

  .resume-download-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .page-intro {
    font-size: 0.875rem;
  }

  .resume-statement {
    font-size: 0.9375rem;
  }

  .resume-skills-pill {
    font-size: 0.625rem;
    padding: 0.125rem 0.3rem;
  }

  .resume-skills-group__title {
    font-size: 0.625rem;
  }

  .resume-work__role {
    font-size: 0.9375rem;
  }

  .resume-work__meta {
    font-size: 0.75rem;
  }

  .resume-work__dates {
    font-size: 0.6875rem;
    padding: 0.15rem 0.4rem;
  }

  .resume-work__list {
    font-size: 0.875rem;
  }

  .resume-references-note {
    font-size: 0.875rem;
  }
}
