/* htmltomarkdown.fasthtmlparser.com, on top of style.css and site.css */

/* What to convert: links, images, a part of the page */
.md-options {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
}
.md-options label, .md-tools label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.md-options input[type="checkbox"], .md-tools input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.md-options input[type="text"] {
  flex: 1; min-width: 240px; font: 13.5px var(--mono); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; outline: none;
}
.md-options input[type="text"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.md-parts .chip { font-family: var(--mono); font-size: 12px; }

/* The Markdown */
.md-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.md-tools .md-note { margin-right: auto; color: var(--faint); }
.md-tools .btn { padding: 5px 12px; font-size: 13px; }
.md-out {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 0;
  max-height: 70vh; overflow: auto; font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4;
}
.md-out.nowrap { white-space: pre; overflow-wrap: normal; }
.md-out.empty { color: var(--faint); font-family: var(--font); text-align: center; padding: 28px; border-style: dashed; }

/* A piece of HTML and its Markdown side by side */
.md-example { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 900px) { .md-example { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.md-example > div { min-width: 0; display: flex; flex-direction: column; }
.md-example h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.md-example pre.code { flex: 1; font-size: 12.5px; }

#code .install { display: flex; margin-bottom: 14px; }
#code .install code { flex: 1; }
#code .code-grid { align-items: start; }

/* the names of the other converters are longer than those of the parsers */
#benchmarks .bar-row { grid-template-columns: 172px 1fr; }
@media (max-width: 480px) { #benchmarks .bar-row { grid-template-columns: 1fr; } }

.cta .btn { margin: 4px; }
.site-footer span a { color: var(--muted); }

/* Markdown is read char by char: no ligatures, which draw the "<!---->" next to emphasis, "-->" and "://" as other signs.
   The last rule of the file: the "font" shorthand of the rules above sets the ligatures back to normal. */
pre, code, pre.code, .md-out, .snip pre, .html-input, .md-options input[type="text"] { font-variant-ligatures: none; }
