/* start-own.css: start.html only (START40, 18 Nov 2026). Every rule needs .stx-start, which no other page carries.
   The shared kit sheet assets/start-page.css is not changed. Linked by scripts/build-start-page.py with ?v=. */

/* small capitals of the kit, at 13px on this page */
.stx-start .stx-kicker, .stx-start .stx-door .k { font-size: 0.8125rem; letter-spacing: 0.16em; }
.stx-start .stx-chip { font-size: 0.8125rem; letter-spacing: 0.05em; padding: 0.12rem 0.6rem; }

/* the page's own menu row: taller entries (36px, 44px on a phone) */
.stx-pills.stx-start a { display: flex; align-items: center; min-height: 2.25rem; padding-top: 0.1rem; padding-bottom: 0.1rem; box-sizing: border-box; }

/* 1. the answer, once */
.stx-start .stx-answer { margin: 1.3rem 0 0; padding: 1.15rem 1.4rem 1.2rem; background: #fffaf0; border: 1px solid rgba(190, 150, 70, 0.6); border-left: 5px solid #b08a3c; border-radius: 0 5px 5px 0; font-size: 1.2rem; line-height: 1.55; color: #2c2620; text-wrap: pretty; }
.stx-start .stx-answer .stx-kicker { margin-bottom: 0.45rem; }
.stx-start .stx-answer a { font-weight: 600; white-space: nowrap; }
html.theme-dark .stx-start .stx-answer { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); border-left-color: #d8b366; color: #f6f1e7; }

/* 2. for readers of the printed book */
.stx-start .stx-printed { margin: 1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.55rem; font-size: 0.97rem; color: #2c2620; }
.stx-start .stx-printed b { margin-right: 0.35rem; color: #1c2a3f; }
.stx-start .stx-printed a.stx-pill-link { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.2rem 0.95rem; border: 1px solid #8a6420; border-radius: 999px; background: #fffaf0; color: #5c3f0c; font-weight: 600; text-decoration: none; }
.stx-start .stx-printed a.stx-pill-link:hover { background: #f3e6c8; color: #5c3f0c; }
html.theme-dark .stx-start .stx-printed { color: #e9dfc8; } html.theme-dark .stx-start .stx-printed b { color: #f6f1e7; }
html.theme-dark .stx-start .stx-printed a.stx-pill-link { background: transparent; border-color: #d8b366; color: #f0dca8; }
html.theme-dark .stx-start .stx-printed a.stx-pill-link:hover { background: rgba(216, 179, 102, 0.16); color: #f0dca8; }
.stx-start .stx-printed + .stx-sec { padding-top: 2.1rem; }

/* 4. the latest, as a short dated list */
.stx-start .stx-latest-list ul { list-style: none; margin: 0.35rem 0 0.5rem; padding: 0; }
.stx-start .stx-latest-list li { padding: 0.28rem 0; margin: 0; }
.stx-start .stx-latest-list li + li { border-top: 1px solid rgba(138, 100, 32, 0.3); }
.stx-start .stx-latest-list li b { color: #1c2a3f; font-weight: 700; margin-right: 0.4rem; white-space: nowrap; }
.stx-start .stx-latest-list > a { display: inline-block; padding: 0.25rem 0; font-weight: 600; }
html.theme-dark .stx-start .stx-latest-list li b { color: #f6f1e7; }
html.theme-dark .stx-start .stx-latest-list li + li { border-top-color: rgba(216, 179, 102, 0.3); }

/* 3. the two pictures */
.stx-start .stx-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.stx-start .stx-fig { margin: 0; padding: 0.85rem 0.85rem 0.95rem; background: #fffaf0; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 5px; }
.stx-start .stx-fig img { display: block; width: 100%; height: auto; max-height: 21rem; object-fit: contain; background: #fff; border: 1px solid rgba(123, 108, 84, 0.45); border-radius: 3px; }
.stx-start .stx-fig figcaption { margin: 0.7rem 0 0; padding: 0; font-size: 0.93rem; line-height: 1.5; color: #2c2620; font-style: normal; text-align: left; }
.stx-start .stx-fig .stx-credit { display: block; margin-top: 0.35rem; font-size: 0.84rem; color: #5a4c38; }
.stx-start .stx-fig .stx-fig-src { display: inline-block; margin-top: 0.4rem; padding: 0.2rem 0; font-size: 0.9rem; font-weight: 600; }
html.theme-dark .stx-start .stx-fig { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); }
html.theme-dark .stx-start .stx-fig figcaption { color: #e9dfc8; } html.theme-dark .stx-start .stx-fig .stx-credit { color: #c8b896; }

/* 5. a door is a box of links */
/* the box carries data-ground="dark", the site's own mark for links on a dark ground (site-improve.css, section 10) */
.stx-start .stx-door-links h3 a { color: #f6f1e7; text-decoration: none; border-bottom: 0; }
.stx-start .stx-door-links h3 a:hover { text-decoration: underline; text-decoration-color: #d8b366; }
.stx-start .stx-door-links li { padding: 0 0 0 1.1rem; }
.stx-start .stx-door-links li a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.1rem 0; color: #f0e6cf; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(216, 179, 102, 0.8); text-underline-offset: 0.22em; }
.stx-start .stx-door-links li a:hover { color: #fff; text-decoration-color: #e8cd8a; }
.stx-start .stx-door-links li::before { top: 0.42rem; left: 0; }
.stx-start .stx-door-links .go { align-self: flex-start; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.25rem 1.1rem; border: 1px solid #d8b366; border-radius: 4px; color: #f0dca8; text-decoration: none; }
.stx-start .stx-door-links .go:hover { background: #d8b366; color: #141f30; border-color: #d8b366; }
.stx-start .stx-door-links:hover { box-shadow: none; border-color: rgba(216, 179, 102, 0.55); }
.stx-start .stx-door-links a:focus-visible { outline: 3px solid #e8cd8a; outline-offset: 2px; border-radius: 2px; }
.stx-start .stx-answer a:focus-visible, .stx-start .stx-printed a.stx-pill-link:focus-visible, .stx-start .stx-fig a:focus-visible, .stx-start .stx-latest-list a:focus-visible, .stx-start .stx-btn:focus-visible, .stx-start #stx-q:focus-visible { outline: 3px solid #1c2a3f; outline-offset: 2px; }
html.theme-dark .stx-start .stx-answer a:focus-visible, html.theme-dark .stx-start .stx-printed a.stx-pill-link:focus-visible, html.theme-dark .stx-start .stx-fig a:focus-visible, html.theme-dark .stx-start .stx-latest-list a:focus-visible, html.theme-dark .stx-start .stx-btn:focus-visible, html.theme-dark .stx-start #stx-q:focus-visible { outline-color: #e8cd8a; }

/* 6. the find box over "All the pages"; shown only when the script runs */
.stx-start .stx-find { display: none; }
html.stx-find-on .stx-start .stx-find { display: grid; grid-template-columns: auto minmax(0, 24rem) 1fr; align-items: center; gap: 0.4rem 0.8rem; margin: 0 0 0.9rem; }
.stx-start .stx-find label { font-weight: 700; color: #1c2a3f; }
.stx-start #stx-q { width: 100%; min-height: 2.75rem; padding: 0.4rem 0.8rem; font: inherit; font-size: 1rem; color: #2c2620; background: #fff; border: 1px solid #7b6c54; border-radius: 4px; box-sizing: border-box; }
.stx-start #stx-q::placeholder { color: #6a5c46; opacity: 1; }
.stx-start #stx-count { margin: 0; font-size: 0.93rem; color: #5a4c38; min-height: 1.4em; }
.stx-start .stx-list li[hidden], .stx-start .stx-fold[hidden] { display: none; }
html.theme-dark .stx-start .stx-find label { color: #f6f1e7; }
html.theme-dark .stx-start #stx-q { background: #131d2b; color: #f6f1e7; border-color: #a8987a; }
html.theme-dark .stx-start #stx-q::placeholder { color: #b9aa8b; }
html.theme-dark .stx-start #stx-count { color: #c8b896; }

/* the closing button */
.stx-start .stx-send { margin: 1.6rem 0 0; text-align: center; }
.stx-start .stx-btn { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0.4rem 1.6rem; background: #1c2a3f; border: 1px solid #1c2a3f; border-radius: 4px; color: #f6f1e7; font-weight: 700; font-size: 1.02rem; text-decoration: none; }
.stx-start .stx-btn:hover { background: #2a3d5a; color: #f6f1e7; }
html.theme-dark .stx-start .stx-btn { background: #d8b366; border-color: #d8b366; color: #141f30; }
html.theme-dark .stx-start .stx-btn:hover { background: #e8cd8a; color: #141f30; }

/* 6. shorter cards on a phone: heading and chip on one row, less padding */
@media (max-width: 860px) {
  .stx-start .stx-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.6rem; align-items: baseline; padding: 0.7rem 0.9rem 0.55rem; }
  .stx-start .stx-card h3 { margin: 0; }
  .stx-start .stx-card .stx-chip { margin: 0; align-self: center; justify-self: end; }
  .stx-start .stx-card p { grid-column: 1 / -1; margin: 0.4rem 0 0.25rem; font-size: 0.95rem; line-height: 1.45; }
  .stx-start .stx-card .more { grid-column: 1 / -1; justify-self: start; }
  .stx-start .stx-cards { gap: 0.6rem; }
  .stx-start .stx-figs { grid-template-columns: 1fr; }
  .stx-pills.stx-start a { min-height: 2.75rem; }
  .stx-start .stx-answer { font-size: 1.08rem; padding: 0.95rem 1.05rem 1rem; }
  .stx-start .stx-printed a.stx-pill-link { min-height: 2.75rem; }
  .stx-start .stx-printed b { flex-basis: 100%; margin: 0; }
  .stx-start .stx-door-links li a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.2rem 0; }
  .stx-start .stx-door-links li::before { top: 0.7rem; }
  .stx-start .stx-door-links ul { margin-bottom: 0.6rem; }
  .stx-start .stx-door-links .go { min-height: 2.75rem; }
  html.stx-find-on .stx-start .stx-find { grid-template-columns: 1fr; }
}
@media print {
  .stx-start .stx-find, .stx-start .stx-send { display: none !important; }
  .stx-start .stx-fig, .stx-start .stx-answer, .stx-start .stx-door, .stx-start .stx-latest-list, .stx-start .stx-card { break-inside: avoid; }
  .stx-start .stx-kicker, .stx-start .stx-sec > h2 { break-after: avoid; }
  .stx-start .stx-printed a.stx-pill-link { border: 0; background: none; padding: 0 0.7rem 0 0; min-height: 0; }
  .stx-start .stx-door-links ul, .stx-start .stx-door-links li { color: #000 !important; -webkit-text-fill-color: #000 !important; }
  .stx-start .stx-door-links { background: none; color: #000; border-color: #777; }
  .stx-start .stx-door-links h3 a, .stx-start .stx-door-links li a, .stx-start .stx-door-links .go, .stx-start .stx-door-links p, .stx-start .stx-door-links .k { color: #000 !important; -webkit-text-fill-color: #000 !important; }
}
