/* since-printed.css: the page "Since the book was printed" and its pages for each printing (website idea 2, 17 Nov 2026).
   All rules are .spx-. The page's frame (hero, sections, cards) is assets/start-page.css. */
.spx-main { max-width: 60rem; }
.spx-lead { margin: 0 0 1rem; max-width: 46rem; font-size: 1.06rem; line-height: 1.6; }
.spx-note { margin: 0.9rem 0 1.2rem; max-width: 46rem; font-size: 0.95rem; line-height: 1.55; color: #5a4c38; }
/* the page finder */
.spx-find { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 7.5rem auto; gap: 0.6rem 0.8rem; align-items: center; margin: 0 0 1rem; padding: 1rem 1.1rem; background: #fffaf0; border: 1px solid rgba(190, 150, 70, 0.6); border-left: 4px solid #d8b366; border-radius: 6px; }
.spx-find label { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8a6420; }
.spx-find select, .spx-find input { box-sizing: border-box; width: 100%; min-height: 2.6rem; padding: 0.4rem 0.6rem; border: 1px solid rgba(138, 100, 32, 0.6); border-radius: 5px; background: #fff; color: #1f1a14; font: inherit; font-size: 1rem; }
.spx-find button { min-height: 2.6rem; padding: 0.4rem 1.1rem; border: 1px solid #1c2a3f; border-radius: 5px; background: #1c2a3f; color: #f6f1e7; font: inherit; font-weight: 700; cursor: pointer; }
.spx-find button:hover { background: #141f30; }
.spx-find select:focus-visible, .spx-find input:focus-visible, .spx-find button:focus-visible, .spx-sec > summary:focus-visible, .spx-fold > summary:focus-visible { outline: 2px solid #8a6420; outline-offset: 2px; }
.spx-result:empty { display: none; }
.spx-result { margin: 0 0 1.2rem; padding: 0.9rem 1.1rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 6px; background: #fff; }
.spx-result h3 { margin: 0 0 0.3rem; font-size: 1.2rem; line-height: 1.3; color: #1c2a3f; }
.spx-result p { margin: 0.3rem 0; font-size: 1rem; line-height: 1.55; }
.spx-result ul { margin: 0.5rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-weight: 700; }
.spx-result .none { color: #5a4c38; }
/* the list of chapters and pages */
.spx-fold, .spx-sec { margin: 0 0 0.7rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 6px; background: #fffdf7; }
.spx-fold > summary, .spx-sec > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; cursor: pointer; font-weight: 700; color: #1c2a3f; }
.spx-sec > summary small { flex: none; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.8rem; font-weight: 600; color: #8a6420; }
.spx-fold[open] > summary, .spx-sec[open] > summary { border-bottom: 1px solid rgba(190, 150, 70, 0.4); }
.spx-fold > table { margin: 0; }
.spx-main table.spx-map { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.spx-main table.spx-map th, .spx-main table.spx-map td { padding: 0.4rem 0.7rem !important; border: 0 !important; border-bottom: 1px solid rgba(190, 150, 70, 0.25) !important; text-align: left; vertical-align: top; background: transparent !important; }
.spx-main table.spx-map th { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8a6420; }
.spx-main table.spx-map td.n, .spx-main table.spx-map th:nth-child(3), .spx-main table.spx-map th:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spx-main table.spx-map tr.part td { font-weight: 700; color: #1c2a3f; }
.spx-main table.spx-map tr.spx-hit td { background: #f8ecc8 !important; }
body .spx-main details.spx-sec > summary, body .spx-main details.spx-fold > summary { padding: 0.7rem 1rem 0.7rem 2.7rem; font-family: inherit; letter-spacing: 0; }
body .spx-main details.spx-sec > summary::before, body .spx-main details.spx-fold > summary::before { left: 1rem; top: 0.9rem; }
/* printings and builds */
.stx-cards.spx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spx-builds { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.spx-builds li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(190, 150, 70, 0.25); }
.spx-builds b { color: #1c2a3f; }
.spx-builds span { color: #3b3226; }
#how p { max-width: 46rem; font-size: 1.02rem; line-height: 1.6; margin: 0 0 0.8rem; }
/* one printing: the changes */
.spx-pp, .spx-through { margin: 0.8rem 1rem; font-size: 0.95rem; color: #5a4c38; }
.spx-through { color: #2c2620; font-size: 1rem; }
.spx-list { list-style: none; margin: 0; padding: 0 1rem 0.6rem; }
.spx-item { padding: 0.7rem 0; border-top: 1px solid rgba(190, 150, 70, 0.3); scroll-margin-top: 7rem; }
.spx-where { margin: 0 0 0.35rem; font-size: 0.95rem; line-height: 1.5; color: #3b3226; }
.spx-where b { color: #1c2a3f; }
.spx-flag { display: inline-block; margin-left: 0.3rem; padding: 0.05rem 0.5rem; border: 1px solid rgba(138, 100, 32, 0.6); border-radius: 999px; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.72rem; font-weight: 600; color: #6b4d14; background: #fbf1d8; white-space: nowrap; }
.spx-now { margin: 0; padding: 0.55rem 0.8rem; border-left: 3px solid #d8b366; background: #fffaf0; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.spx-lbl { display: block; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8a6420; }
.spx-now mark { background: #f6e2a6; color: inherit; padding: 0 0.1em; border-radius: 2px; }
.spx-new { margin: 1rem 0 0; font-size: 0.98rem; }
/* dark */
html.theme-dark .spx-note, html.theme-dark .spx-pp, html.theme-dark .spx-result .none { color: #c8b896; }
html.theme-dark .spx-find, html.theme-dark .spx-result, html.theme-dark .spx-fold, html.theme-dark .spx-sec, html.theme-dark .spx-now { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); }
html.theme-dark .spx-find label, html.theme-dark .spx-lbl, html.theme-dark .spx-sec > summary small, html.theme-dark .spx-main table.spx-map th { color: #d8b366; }
html.theme-dark .spx-find select, html.theme-dark .spx-find input { background: #141f30; color: #f3ead6; border-color: rgba(216, 179, 102, 0.5); }
html.theme-dark .spx-find button { background: #d8b366; color: #141f30; border-color: #d8b366; }
html.theme-dark .spx-result h3, html.theme-dark .spx-fold > summary, html.theme-dark .spx-sec > summary, html.theme-dark .spx-builds b, html.theme-dark .spx-where b, html.theme-dark .spx-main table.spx-map tr.part td { color: #f6f1e7; }
html.theme-dark .spx-builds span, html.theme-dark .spx-where, html.theme-dark .spx-through { color: #e0d5bd; }
html.theme-dark .spx-flag { background: rgba(216, 179, 102, 0.18); color: #e8cd8a; border-color: rgba(216, 179, 102, 0.5); }
html.theme-dark .spx-now mark { background: rgba(216, 179, 102, 0.35); }
html.theme-dark .spx-main table.spx-map tr.spx-hit td { background: rgba(216, 179, 102, 0.22) !important; }
@media (max-width: 760px) {
  .spx-find { grid-template-columns: 1fr; }
  .stx-cards.spx-cards { grid-template-columns: 1fr; }
  .spx-builds li { grid-template-columns: 1fr; gap: 0.1rem; }
  .spx-fold { overflow-x: auto; }
  .spx-main table.spx-map th:nth-child(1), .spx-main table.spx-map td:nth-child(1) { display: none; }
}
@media print { .spx-find { display: none; } .spx-sec > *, .spx-fold > * { display: block !important; } }
