/* ==========================================================================================
   BarcoderX website: how-to layer. Author: BarcoderX.
   Small additions for developer how-to articles (starting with "Send ZPL to a Zebra printer from C#").
   It sits on top of site.css, inner.css and zpl.css, which already provide the article layout, the code
   panels and the call-outs; this file only adds what those do not have.
   Tokens only: every colour, space and size comes from /brand/tokens.css through site.css.
   Light theme only. Mobile first.
   ========================================================================================== */

/* The guide H1 is capped at 20ch because ZPL guide titles are short noun phrases. How-to titles are full
   sentences ("Send ZPL to a Zebra printer from C#"), so give them room to break into two lines, not four. */
.howto-h1 { max-width: 26ch; }

/* Facts about the page (what it needs, what it was tested on). Labels may be long in Spanish, so the badges
   are allowed to wrap instead of forcing a horizontal scroll at 360 px. */
.howto-meta { display: flex; flex-wrap: wrap; gap: var(--bx-space-2); }
.howto-meta .badge { white-space: normal; }

/* zpl.css caps prose at 54ch, which suits one-sentence reference facts. A how-to is read in paragraphs, so
   use a measure of about 66 characters (inside the 70ch ceiling) for running text and call-outs. */
.howto .prose p,
.howto .prose .note,
.howto .zfaq p { max-width: 66ch; }

/* Plain bullet list for "details worth keeping" and "when a library pays off". A short green dash marks each
   item; the bold lead-in is the scannable part. */
.hlist { display: grid; gap: var(--bx-space-3); max-width: 66ch; padding: 0; list-style: none; }
.hlist li { position: relative; padding-left: var(--bx-space-5); }
.hlist li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 2px; background: var(--bx-green-500); }
.hlist b { color: var(--bx-ink); font-weight: 650; }
.howto .prose .hlist code { padding: 0.05em 0.3em; background: var(--bx-gray-100); border-radius: var(--bx-radius-sm); font-weight: 600; font-size: 0.9em; }

/* The shared .code .c rule wraps comments (pre-wrap). In a how-to the sample must stay copy-pasteable and
   keep its indentation, so comments scroll with the rest of the line like any other code. */
.howto .code .c { white-space: pre; }

/* Sources list at the foot of the article: one link per row, each row a full touch target. */
.src-list { display: grid; margin-block: var(--bx-space-2); padding: 0; list-style: none; }
.src-list li { min-width: 0; }
.src-list a { display: inline-flex; align-items: center; min-height: var(--bx-touch-target); overflow-wrap: anywhere; }
