/* Pin footer to bottom of viewport */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main[role="main"] {
  flex: 1;
  padding-bottom: 0 !important;
}

/* Wider content container for pages (Projects, About, etc.) */
.page-content-wide {
  width: 80%;
  max-width: 80%;
}

@media (max-width: 960px) {
  .page-content-wide {
    width: 100%;
    max-width: 100%;
  }
}

/* Copy-to-clipboard button on code blocks */
.copy-code-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  line-height: 1;
}
pre:hover .copy-code-btn,
.highlight:hover .copy-code-btn,
.code-block-wrapper:hover .copy-code-btn {
  opacity: 1;
}

/* Normalise GitHub Actions badge height in tables */
table img {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

/* Fix Build Status column to consistent width */
table td:last-child,
table th:last-child {
  width: 120px;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
}
