/* Content and accessibility refinements layered over the existing resume theme. */
body {
  color: #59626b;
}

.profile-focus {
  color: #343a40;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.contact-line a {
  overflow-wrap: anywhere;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid #2ba3bd;
  border-radius: 0.3rem;
  color: #176b7d;
}

.profile-links a:hover {
  background: #edf8fa;
  text-decoration: none;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid #176b7d;
  outline-offset: 4px;
}

.experience-bullets {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.experience-bullets li {
  margin-bottom: 0.65rem;
}

.company-video {
  width: 100%;
  max-width: 40rem;
  margin: 1.5rem 0 0;
  scroll-margin-top: 4.5rem;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.35rem;
}

.video-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.video-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail:focus-visible {
  outline: 3px solid #176b7d;
  outline-offset: -3px;
}

/* Preserve the thumbnail's layout while the player fills the same frame. */
.video-player.is-playing .video-thumbnail {
  visibility: hidden;
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
}

.video-thumbnail:hover .video-play,
.video-thumbnail:focus-visible .video-play {
  background: #176b7d;
}

.company-video figcaption {
  margin-top: 0.6rem;
}

#skills, #education {
  min-height: auto;
}

#skills h3 {
  font-size: 1.6rem;
}

.resume-content {
  min-width: 0;
}

.resume-date {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  h1 {
    font-size: 4rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.75rem;
  }

  section.resume-section {
    padding-top: 4rem !important;
    padding-bottom: 3rem !important;
  }

  .resume-date {
    margin-top: 0.75rem;
  }
}
