/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.gh-section-title {
  align-items: center;
  border-bottom: 1px solid #d0d7de;
  color: #1f2328;
  display: flex;
  font-size: 20px;
  font-weight: 600;
  gap: 8px;
  line-height: 28px;
  margin-bottom: 16px;
  padding-bottom: 10px;
}

.gh-section-title::before {
  background: #6e7781;
  content: "";
  height: 18px;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1L6.1 1.3A.75.75 0 0 0 5.5 1H1.75Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1L6.1 1.3A.75.75 0 0 0 5.5 1H1.75Z'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 18px;
}

.gh-file-shell {
  color: #1f2328;
  font-size: 14px;
}

.gh-pathbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
  min-width: 0;
}

.gh-breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 4px;
  min-width: 0;
}

.gh-breadcrumb-link {
  color: #0969da;
  font-weight: 600;
}

.gh-breadcrumb-link:hover,
.gh-file-row:hover .gh-file-name,
.gh-link-muted:hover {
  text-decoration: underline;
}

.gh-breadcrumb-separator {
  color: #57606a;
}

.gh-breadcrumb-current {
  color: #1f2328;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.gh-link-muted {
  color: #0969da;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
}

.gh-file-list,
.gh-blob-box,
.gh-error-box {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  overflow: hidden;
}

.gh-list-header,
.gh-blob-header {
  align-items: center;
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
  display: flex;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
}

.gh-commit-dot {
  background: #6e7781;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.gh-list-title {
  color: #1f2328;
  font-weight: 600;
}

.gh-list-count {
  color: #57606a;
  font-size: 12px;
  margin-left: auto;
}

.gh-file-row {
  align-items: center;
  border-bottom: 1px solid #d8dee4;
  color: #1f2328;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 42px;
  padding: 8px 16px;
}

.gh-file-row:last-child {
  border-bottom: 0;
}

.gh-file-row:hover {
  background: #f6f8fa;
}

.gh-file-cell-name {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.gh-file-name {
  color: #0969da;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-file-cell-meta {
  color: #57606a;
  font-size: 12px;
  white-space: nowrap;
}

.gh-parent-row .gh-file-name {
  color: #57606a;
}

.gh-file-icon {
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.gh-file-icon-folder {
  color: #54aeef;
  fill: currentColor;
}

.gh-file-icon-blob {
  color: #6e7781;
}

.gh-empty-row,
.gh-error-box {
  color: #57606a;
  padding: 28px 16px;
  text-align: center;
}

.gh-error-box code {
  background: #f6f8fa;
  border-radius: 4px;
  color: #24292f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 2px 5px;
}

.gh-blob-header {
  justify-content: space-between;
}

.gh-blob-title {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.gh-blob-title strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-blob-title span {
  color: #57606a;
  flex: 0 0 auto;
  font-size: 12px;
}

.gh-blob-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.gh-blob-tab {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  color: #24292f;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  padding: 2px 8px;
}

.gh-blob-tab:hover {
  background: #f3f4f6;
}

.gh-blob-tab-active {
  background: #0969da;
  border-color: #0969da;
  color: #ffffff;
}

.gh-blob-tab-active:hover {
  background: #0969da;
}

.gh-code-viewport {
  background: #ffffff;
  overflow-x: auto;
}

.gh-code-viewport .highlight {
  background: #ffffff;
  color: #1f2328;
  min-width: max-content;
  padding: 8px 0;
}

.gh-code-lines {
  counter-reset: line;
}

.gh-code-lines .line {
  counter-increment: line;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 20px;
  min-height: 20px;
  padding: 0 16px 0 56px;
  position: relative;
  white-space: pre;
}

.gh-code-lines .line::before {
  color: #6e7781;
  content: counter(line);
  left: 0;
  padding: 0 12px 0 8px;
  position: absolute;
  text-align: right;
  top: 0;
  user-select: none;
  width: 48px;
}

.gh-code-lines .line:hover {
  background: #f6f8fa;
}

.gh-binary-note {
  color: #57606a;
  padding: 28px 16px;
  text-align: center;
}

.gh-markdown-preview {
  padding: 24px 32px;
}

.gh-markdown-preview > :first-child {
  margin-top: 0;
}

.gh-markdown-preview > :last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .gh-pathbar,
  .gh-blob-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gh-file-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .gh-file-cell-meta {
    padding-left: 26px;
  }

  .gh-code-lines .line {
    padding-left: 44px;
  }

  .gh-code-lines .line::before {
    padding: 0 8px 0 4px;
    width: 38px;
  }

  .gh-markdown-preview {
    padding: 18px 16px;
  }
}
