:root {
  color-scheme: light dark;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  line-height: 1.5;
  background: Canvas;
  color: CanvasText;
}

* {
  box-sizing: border-box;
}

body {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid GrayText;
}

.brand {
  color: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

main {
  min-height: 65vh;
  padding: 2rem 0;
}

main > article,
main > details,
main > dl,
main > form,
main > ol,
main > section:not(.repository-panel),
main > ul,
main > .field,
main > .table-scroll,
.two-column > section {
  margin-block: 1.5rem;
  padding: 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

main > ol,
main > ul {
  padding-inline-start: 2.75rem;
}

main > article > :first-child,
main > details > :first-child,
main > dl > :first-child,
main > form > :first-child,
main > ol > :first-child,
main > section:not(.repository-panel) > :first-child,
main > ul > :first-child,
main > .field > :first-child,
.two-column > section > :first-child {
  margin-top: 0;
}

main > article > :last-child,
main > details > :last-child,
main > dl > :last-child,
main > form > :last-child,
main > ol > :last-child,
main > section:not(.repository-panel) > :last-child,
main > ul > :last-child,
main > .field > :last-child,
.two-column > section > :last-child {
  margin-bottom: 0;
}

main > .table-scroll {
  padding: 0;
}

main > .table-scroll th,
main > .table-scroll td {
  padding: 0.6rem 1rem;
}

main > .table-scroll tbody tr:last-child > * {
  border-bottom: 0;
}

footer {
  padding: 1rem 0;
  border-top: 1px solid GrayText;
}

form {
  max-width: 32rem;
}

details {
  margin-block: 1.5rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.repository-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.repository-header h1 {
  margin-block: 0.5rem;
}

.repository-header nav {
  justify-content: flex-end;
  font-size: 0.875rem;
}

.repository-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-block: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

.repository-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(23rem, 1fr);
  gap: 2rem;
  align-items: start;
}

.repository-summary-main,
.repository-sidebar {
  min-width: 0;
}

.repository-summary-main > section,
.repository-sidebar > section {
  margin-bottom: 2rem;
}

.repository-panel {
  padding: 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

.repository-panel > h2:first-child {
  margin-top: 0;
}

.repository-file-panel {
  padding: 0;
  overflow: hidden;
}

.repository-file-panel th,
.repository-file-panel td {
  padding: 0.6rem 1rem;
}

.repository-file-panel tbody tr:last-child > * {
  border-bottom: 0;
}

.repository-file-more {
  margin: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid GrayText;
}

.repository-file-list th:first-child {
  width: 100%;
}

.repository-sidebar dd {
  overflow-x: auto;
  overflow-wrap: normal;
  white-space: nowrap;
}

.repository-recent-list {
  padding-left: 1.5rem;
}

.repository-recent-list li {
  margin-block: 0.5rem;
}

.repository-readme {
  margin-block: 2rem;
}

.site-header nav,
.repository-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.25rem 1rem;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

th,
td {
  padding: 0.4rem;
  border-bottom: 1px solid GrayText;
  text-align: left;
  vertical-align: top;
}

pre {
  max-width: 100%;
  padding: 1rem;
  overflow: auto;
  border: 0.125rem solid GrayText;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.commit-list code,
.blame-list code {
  overflow-wrap: anywhere;
}

.field {
  margin-block: 1rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

input,
textarea,
select,
button {
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
  background: Canvas;
  color: CanvasText;
  font: inherit;
}

input {
  width: 100%;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

textarea {
  width: 100%;
  resize: vertical;
}

button {
  cursor: pointer;
  font-weight: 700;
}

a {
  color: LinkText;
}

:focus-visible {
  outline: 0.2rem solid Highlight;
  outline-offset: 0.2rem;
}

.error {
  padding: 0.75rem;
  border-left: 0.25rem solid #b42318;
}

.comment-card {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

.comment-card > h3 {
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid GrayText;
}

.key-list {
  padding: 0;
  list-style: none;
}

.key-card {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

.key-card > h3 {
  margin-top: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: start;
}

.profile-bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.home-intro {
  align-self: stretch;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.5rem;
}

.home-repository-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-repository-list li {
  padding-block: 0.75rem;
}

.home-repository-list li + li {
  border-top: 1px solid GrayText;
}

.repository-name {
  font-weight: 700;
}

.repository-meta {
  display: block;
  margin-top: 0.25rem;
}

.home-repository-list p {
  margin: 0.25rem 0 0;
}

.home-repository-list .inline-form {
  margin-top: 0.75rem;
}

.home-workflow {
  margin-top: 2rem;
}

.home-workflow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.home-workflow strong {
  display: block;
  margin-bottom: 0.5rem;
}

.home-workflow p {
  margin: 0;
}

.auth-page {
  width: min(100%, 36rem);
  margin-inline: auto;
}

.auth-panel {
  padding: 1rem;
  border: 1px solid GrayText;
  border-radius: 0.25rem;
}

.auth-panel > :first-child {
  margin-top: 0;
}

.auth-panel > :last-child {
  margin-bottom: 0;
}

.auth-panel form {
  max-width: none;
}

.auth-panel details {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid GrayText;
}

.search-panel form {
  max-width: none;
}

.search-results {
  padding-left: 1.5rem;
}

.search-results li {
  padding-block: 0.75rem;
}

.search-results li + li {
  border-top: 1px solid GrayText;
}

.page-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 2rem 0 1rem;
}

.page-section-header h2 {
  margin: 0;
}

.collection-panel > .filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  max-width: none;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid GrayText;
}

.filter-form .field {
  margin: 0;
}

.filter-form select {
  min-width: 9rem;
}

.issue-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-list li {
  padding-block: 1rem;
}

.issue-list li + li {
  border-top: 1px solid GrayText;
}

.issue-title {
  font-weight: 700;
}

.issue-meta {
  display: block;
  margin-top: 0.25rem;
}

.collection-action {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid GrayText;
}

@media (max-width: 44rem) {
  .two-column,
  .repository-summary-layout {
    grid-template-columns: 1fr;
  }

  .home-workflow ol {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.confirmation {
  margin-block: 0.75rem;
  border: 1px solid GrayText;
}

.confirmation label {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 400;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1;
  padding: 0.5rem;
  background: Canvas;
}
