/*
 * 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.
 */

.markdown-body p {
  margin: 0.5rem 0;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.markdown-body code {
  border: 1px solid rgb(64 64 64);
  border-radius: 0.25rem;
  background: rgb(23 23 23);
  padding: 0.1rem 0.3rem;
  color: rgb(167 243 208);
}

.markdown-body pre {
  overflow-x: auto;
  border: 1px solid rgb(64 64 64);
  border-radius: 0.375rem;
  background: rgb(15 15 15);
  padding: 0.75rem;
}

.markdown-body pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

.markdown-body a {
  color: rgb(110 231 183);
}

.markdown-body blockquote {
  border-left: 3px solid rgb(82 82 82);
  margin: 0.75rem 0;
  padding-left: 0.75rem;
  color: rgb(212 212 212);
}

.markdown-body table {
  display: table;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0.75rem 0;
  border: 1px solid rgb(64 64 64);
}

.markdown-body th,
.markdown-body td {
  border: 1px solid rgb(64 64 64);
  padding: 0.4rem 0.55rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.markdown-body th {
  background: rgb(23 23 23);
  color: rgb(245 245 245);
}

.markdown-body tr:nth-child(even) td {
  background: rgb(23 23 23 / 0.35);
}

.inline-comment-summary {
  list-style: none;
}

.inline-comment-summary::-webkit-details-marker {
  display: none;
}

.inline-comment-summary::marker {
  content: "";
}

.inline-comment-row {
  display: grid;
  grid-template-columns: 1rem 2rem minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.5rem;
  padding: 0.1rem 0;
}

.inline-comment-summary:hover .inline-comment-row {
  background: rgb(23 23 23 / 0.45);
}

.inline-comment-plus {
  display: block;
  color: rgb(115 115 115);
  text-align: center;
  user-select: none;
}

details[open] > .inline-comment-summary .inline-comment-plus,
.inline-comment-summary:hover .inline-comment-plus {
  color: rgb(229 229 229);
}

.inline-comment-number {
  display: block;
  color: rgb(115 115 115);
  text-align: right;
  user-select: none;
}

.inline-comment-text {
  display: block;
  min-width: 0;
  color: rgb(229 229 229);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inline-comment-text hr {
  margin: 0.2rem 0;
  border: 0;
  border-top: 1px solid rgb(163 163 163 / 0.9);
}

.line-comment-count {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  padding: 0.05rem 0.4rem;
  border: 1px solid rgb(115 115 115);
  border-radius: 9999px;
  color: rgb(229 229 229);
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
  vertical-align: middle;
}

.line-comment-count-slot {
  display: inline-block;
  width: clamp(6.75rem, 16vw, 8.5rem);
}

.line-comment-count-placeholder {
  visibility: hidden;
}

.line-comment-divider {
  margin: 0.5rem 0;
}

.markdown-editor-toolbar button {
  border: 1px solid rgb(82 82 82);
  border-radius: 0.375rem;
  background: rgb(23 23 23);
  color: rgb(229 229 229);
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.markdown-editor-toolbar button:hover {
  border-color: rgb(163 163 163);
}

.markdown-editor-tab {
  border: 1px solid rgb(82 82 82);
  border-radius: 0.375rem;
  background: rgb(23 23 23);
  color: rgb(212 212 212);
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
}

.markdown-editor-tab.is-active {
  border-color: rgb(212 212 212);
  color: rgb(255 255 255);
}

.inline-comment-text p,
.inline-comment-text ul,
.inline-comment-text ol {
  display: inline;
  margin: 0;
  padding: 0;
}

.inline-comment-text li {
  display: inline;
}

.inline-markdown-table-row {
  display: grid;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgb(82 82 82);
  border-radius: 0.2rem;
  overflow: hidden;
}

.inline-markdown-table-cell {
  min-width: 0;
  padding: 0.05rem 0.45rem;
  border-left: 1px solid rgb(82 82 82);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inline-markdown-table-cell:first-child {
  border-left: 0;
}

.inline-markdown-table-cell.is-header {
  background: rgb(38 38 38);
  font-weight: 600;
}

.inline-comment-row-table {
  grid-template-columns: 1rem 2rem minmax(0, 1fr) clamp(6.75rem, 16vw, 8.5rem);
}

.inline-comment-row-table .line-comment-count-slot {
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.inline-comment-row-table .line-comment-count {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  width: 100%;
  margin-left: 0;
}

.newsletter-details summary {
  list-style: none;
}

.newsletter-details summary::-webkit-details-marker {
  display: none;
}

.newsletter-details[open] > summary {
  display: none;
}

.newsletter-details:not([open]) .newsletter-form {
  display: none;
}
