/* The library (library.html) and its article pages (article.html). Built on
   guide.css: same header, sections and document typography; this file adds
   the search box, the card shelves and the article frame. */

.lHero { max-width: 860px; }
/* the line under the name: the website's hero (and Home) only */
.lTag { margin: 0 0 8px; color: var(--hi-text); font: 600 var(--fs-l)/1.35 var(--font-head);
        letter-spacing: -0.01em; }
.gName { font-family: var(--font-head); letter-spacing: var(--head-ls); }
.lHero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 600;
            letter-spacing: var(--head-ls); color: var(--tx0); margin-bottom: 14px; }
.lSearch { position: relative; display: flex; align-items: center; margin-top: 26px;
           border-radius: 14px; border: 1px solid var(--line2); background: var(--bg1); }
.lSearch:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
.lSearch svg { position: absolute; left: 16px; width: 18px; height: 18px; fill: none;
               stroke: var(--tx3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.lSearch input { flex: 1; min-width: 0; padding: 15px 14px 15px 46px; border: 0; outline: 0;
                 background: none; color: var(--tx0); font: inherit; font-size: var(--fs-l); }
.lSearch input::placeholder { color: var(--tx3); }
.lSearch input::-webkit-search-cancel-button { display: none; }
.lSearch button { margin-right: 8px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
                  border: 1px solid var(--line2); background: var(--bg2); color: var(--tx1);
                  font: inherit; font-size: var(--fs-s); white-space: nowrap; }
.lSearch button:hover { border-color: var(--tx3); }
.lCounts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
           margin-top: 12px; color: var(--tx3); font-size: var(--fs-s); }
.lQueue { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--hi-line);
          background: var(--hi-bg); color: var(--hi-text) !important; font-weight: 600;
          text-decoration: none; white-space: nowrap; }
.lQueue:hover { border-color: var(--hi); }

/* ---- category chips ---- */
.lChips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lChips .chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
                border-radius: 999px; border: 1px solid var(--line2); background: var(--bg1);
                color: var(--tx1); font: inherit; font-size: var(--fs-s); font-weight: 600;
                cursor: pointer; white-space: nowrap; }
.lChips .chip:hover { border-color: var(--tx3); }
.lChips .chip[aria-pressed="true"] { background: var(--acc-bg); border-color: var(--acc);
                                     color: var(--tx0); }
.lChipN { color: var(--tx3); font-weight: 500; font-variant-numeric: tabular-nums; }
.lChips .chip[aria-pressed="true"] .lChipN { color: var(--tx1); }

/* ---- card shelves ---- */
.lGrid { display: grid; gap: 16px; margin-top: 20px;
         grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.lCard { display: flex; flex-direction: column; min-width: 0; border-radius: 16px;
         border: 1px solid var(--line); background: var(--bg1); text-decoration: none;
         color: inherit !important;
         transition: border-color .15s, transform .15s, box-shadow .15s; }
.lCard:hover { border-color: var(--hi-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.lCard:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lCardImg { aspect-ratio: 16 / 10; border-radius: 15px 15px 0 0; overflow: hidden;
            display: grid; place-items: center;
            background: var(--thumb-png); }
.lCardImg img { width: 78%; height: 86%; object-fit: contain; }
.lCardImg img.ph { width: 40px; height: 40px; opacity: .6; }
.lCardBody { display: flex; flex-direction: column; gap: 5px; padding: 13px 15px 15px;
             flex: 1; min-width: 0; }
.lCat { color: var(--hi); font-size: var(--fs-2xs); text-transform: uppercase;
        letter-spacing: 1.2px; font-weight: 700; }
.lName { color: var(--tx0); font-size: var(--fs-l); font-weight: 680; line-height: 1.25;
         overflow-wrap: anywhere; }
.lBlurb { color: var(--tx2); font-size: var(--fs-s); line-height: 1.5;
          display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
          overflow: hidden; }
.lTakes { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 4px; color: var(--tx1);
          font-size: var(--fs-s); font-weight: 500; font-variant-numeric: tabular-nums;
          font-family: var(--mono); }
.lTake { white-space: nowrap; }
.lTake + .lTake::before { content: "·"; margin: 0 6px; color: var(--tx3); }
.lMarks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.lMark { padding: 2px 9px; border-radius: 999px; font-size: var(--fs-2xs); font-weight: 600;
         border: 1px solid var(--line2); color: var(--tx2); background: var(--bg2);
         white-space: nowrap; }
.lMark.ok { color: var(--good); border-color: var(--good-line); background: var(--good-bg); }
.lMark.info { color: var(--hi-text); border-color: var(--hi-line); background: var(--hi-bg); }
.lMark.warn { color: var(--warn-text); border-color: var(--warn-line); background: var(--warn-bg); }
.lArts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.lArt .lBlurb { -webkit-line-clamp: 4; }

/* ---- sources + contribute ---- */
.lRefs, .lAsk { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.lRefs li, .lAsk li { padding: 13px 16px; border-radius: 12px; background: var(--bg1);
                      border: 1px solid var(--line); line-height: 1.5; }
.lRefs a { font-weight: 650; text-decoration: none; }
.lRefs a:hover { text-decoration: underline; }
.lRefSum { display: block; margin-top: 3px; color: var(--tx2); font-size: var(--fs-s); }
.lAsk li { color: var(--tx2); }
.lAsk b { color: var(--tx0); }
.lConLink { margin-top: 14px; }

/* ---- search results ---- */
.lHits { list-style: none; display: grid; gap: 10px; margin-top: 20px; padding: 0; }
.lHit a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px;
          padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
          background: var(--bg1); text-decoration: none; color: inherit !important; }
.lHit a:hover { border-color: var(--hi-line); }
.lHitKind { grid-row: span 2; align-self: start; padding: 2px 0; font-size: var(--fs-2xs);
            font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px; color: var(--tx3); }
.lHitKind.k-project { color: var(--acc); }
.lHitKind.k-article { color: var(--hi); }
.lHitTitle { color: var(--tx0); font-weight: 650; overflow-wrap: anywhere; }
.lHitSec { color: var(--tx2); font-weight: 500; }
.lHitText { color: var(--tx2); font-size: var(--fs-s); line-height: 1.55; overflow-wrap: anywhere; }
.lHitText mark { background: color-mix(in srgb, var(--hi) 30%, transparent); color: var(--tx0);
                 border-radius: 3px; padding: 0 2px; }

/* ---- an article page ---- */
.aHead { max-width: 860px; }
.aHead h1 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1;
            font-weight: 750; letter-spacing: -0.6px; color: var(--tx0); }
.aTags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.aNav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px;
        border-top: 1px solid var(--line); }
.aNav a { flex: 1 1 240px; min-width: 0; padding: 13px 16px; border-radius: 12px;
          border: 1px solid var(--line); background: var(--bg1); text-decoration: none;
          color: inherit !important; }
.aNav a:hover { border-color: var(--hi-line); }
.aNav .next { text-align: right; }
.aNavK { display: block; color: var(--tx3); font-size: var(--fs-2xs); text-transform: uppercase;
         letter-spacing: 1.1px; font-weight: 700; }
.aNavT { display: block; margin-top: 3px; color: var(--tx0); font-weight: 650;
         overflow-wrap: anywhere; }
.aSources { margin-top: 44px; padding: 18px 20px; border-radius: 14px; background: var(--bg1);
            border: 1px solid var(--line); max-width: 76ch; }
.aSources h2 { font-size: var(--fs-m); text-transform: uppercase; letter-spacing: 1.1px;
               color: var(--tx3); font-weight: 700; }
.aSources ul { list-style: none; margin-top: 10px; display: grid; gap: 6px; }
.aSources li { color: var(--tx2); font-size: var(--fs-s); overflow-wrap: anywhere; }
.aNote { margin-top: 12px; color: var(--tx3); font-size: var(--fs-s); line-height: 1.5; }
.gDoc ul ul, .gDoc ol ol, .gDoc ul ol, .gDoc ol ul { margin-top: 6px; }

@media (max-width: 600px) {
  .lGrid, .lArts { grid-template-columns: 1fr; }
  .lCard:not(.lArt) { flex-direction: row; }
  .lCardImg { flex: 0 0 104px; aspect-ratio: auto; border-radius: 15px 0 0 15px; }
  .lCardImg img { width: 84%; height: 84%; }
  .lHit a { grid-template-columns: 1fr; }
  .lHitKind { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lCard { transition: none; }
  .lCard:hover { transform: none; }
}

/* ---- the print queue (queue.html) ---- */
.qTiles { margin-top: 22px; max-width: 620px; }
.pqList { list-style: none; display: grid; gap: 10px; margin-top: 20px; padding: 0; }
.qRow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px;
        padding: 12px; border-radius: 14px; border: 1px solid var(--line);
        background: var(--bg1); }
.qRow.test { border-style: dashed; border-color: var(--warn-line-hi); }
.qRow.just { border-color: var(--good); border-style: solid; }
.qImg { aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: grid;
        place-items: center; background: var(--thumb-png); }
.qImg img { width: 86%; height: 86%; object-fit: contain; }
.qImg img.ph { width: 32px; height: 32px; opacity: .6; }
.qBody { min-width: 0; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.qHead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; width: 100%; }
.qName { color: var(--tx0) !important; font-weight: 650; text-decoration: none;
         overflow-wrap: anywhere; }
.qName:hover { text-decoration: underline; }
.qPiece { color: var(--tx1); font-weight: 500; }
.qHead .lTakes { margin-top: 0; color: var(--tx2); }
.qBlurb { color: var(--tx2); font-size: var(--fs-s); line-height: 1.5; }
.qResult { font-size: var(--fs-s); line-height: 1.5; color: var(--tx2); }
.qResult.good b { color: var(--good); }
.qResult.partial b { color: var(--warn-text); }
.qResult.bad b { color: var(--bad-text); }
.qResult.hold b { color: var(--warn-text); }
.qNoteText { color: var(--tx1); }
.qOpen, .qBtn, .qMore { padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit;
        font-size: var(--fs-s); font-weight: 600; white-space: nowrap;
        border: 1px solid var(--line2); background: var(--bg2); color: var(--tx1); }
.qOpen:hover, .qBtn:hover, .qMore:hover { border-color: var(--tx3); }
.qOpen { margin-top: 4px; }
.qRec { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 6px;
        padding: 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.qNote { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line2);
         background: var(--bg0); color: var(--tx0); font: inherit; }
.qNote:focus { outline: 0; border-color: var(--acc); }
.qBtns { display: flex; flex-wrap: wrap; gap: 8px; }
.qBtn.good { color: var(--good-text); background: var(--good-bg); border-color: var(--good-line-hi); }
.qBtn.partial { color: var(--warn-text); background: var(--warn-bg); border-color: var(--warn-line-hi); }
.qBtn.bad { color: var(--bad-text); background: var(--bad-bg); border-color: var(--bad); }
.qBtn.clear { background: none; color: var(--tx2); }
.qSay { color: var(--tx2); font-size: var(--fs-s); min-height: 1em; }
.qMore { margin-top: 14px; }
@media (max-width: 600px) {
  .qRow { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .qBtns .qBtn { flex: 1 1 100%; }
}

/* "Start from one like this" under a project card - served pages only */
.lCardWrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lCardWrap .lCard { flex: 1; }
.lCopy { align-self: flex-start; padding: 6px 12px; min-height: 44px; font-size: var(--fs-s); }

/* the website's frame (js/sitebar.js, the static export only) */
.sFoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
         padding: 26px max(20px, calc((100vw - 1180px) / 2)) 32px;
         border-top: 1px solid var(--line); background: var(--bg1); }
.sFoot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sFoot a { color: var(--tx2) !important; text-decoration: none; font-weight: 600;
           font-size: var(--fs-ml); }
.sFoot a:hover { color: var(--tx0) !important; }
.sFoot small { margin-left: auto; color: var(--tx3); font-size: var(--fs-s); }
.gDl { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 15px 14px;
       font-size: var(--fs-s); font-weight: 600; }
.gDl a { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 600px) {
  .sFoot small { margin-left: 0; }
  .gDl a { min-height: 40px; }
}
