/* surname-puzzle.css: the short Surname puzzle page, germany/surname-puzzle.html (PUZZLE40, 19 Nov 2026).
   The page is written by scripts/build-surname-puzzle.py. The header, the section heads, the three cards and the three
   doors are those of assets/start-page.css; this sheet adds the lead, the quotation and the two tables.
   Every color pair below was measured as painted in both themes (text at least 4.5 to 1, marks at least 3 to 1). */
.sp-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.sp-lead { margin: 0 0 1.2rem; max-width: 46rem; font-size: 1.2rem; line-height: 1.5; color: #1c2a3f; }
.sp-text { margin: 0 0 1rem; max-width: 46rem; }
.sp-cards { margin-bottom: 1.3rem; }
.sp-cards .stx-card p { font-size: 1rem; }
.sp-cards .stx-card .more { padding: 0.3rem 0; align-self: flex-start; }

/* the paragraph from the chapter */
.sp-quote { margin: 0; max-width: 46rem; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid #d8b366; }
.sp-quote blockquote { margin: 0; padding: 0; border: 0; background: none; font-style: normal; }
.sp-quote blockquote p { margin: 0 0 0.5rem; font-size: 1.02rem; line-height: 1.55; color: #2c2620; font-style: normal; }
.sp-quote figcaption { margin: 0; font: 600 0.875rem/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; color: #4a3f30; text-align: left; font-style: normal; }

/* the two tables */
.sp-wrap { max-width: 100%; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 5px; background: #fffaf0; overflow: hidden; }
.sp-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.97rem; line-height: 1.4; }
.sp-table th, .sp-table td { padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; border: 0; border-top: 1px solid rgba(190, 150, 70, 0.35); background: none; color: inherit; font-weight: 400; }
/* assets/site-improve.css dresses the cells of every table with a head (size, padding, a line below, all marked
   important); these tables keep their own measure, so the rules that follow are marked the same way and stand above it */
html:not(#_):not(#__) .sp-table > tbody > tr > :is(td, th) { font-size: 0.97rem !important; padding: 0.55rem 0.8rem !important; border: 0 !important; border-top: 1px solid rgba(190, 150, 70, 0.35) !important; }
html.theme-dark:not(#_):not(#__) .sp-table > tbody > tr > :is(td, th) { border-top-color: rgba(216, 179, 102, 0.25) !important; }
html:not(#_):not(#__) .sp-table thead th { font-size: 0.8125rem !important; }
.sp-table thead th { border-top: 0; font-weight: 700; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: #6b5220; background: rgba(216, 179, 102, 0.14); }
.sp-table tbody th { color: #1c2a3f; }
.sp-ev tbody th { font-weight: 600; }
.sp-ev b { color: #1c2a3f; }
.sp-table .why { display: block; margin-top: 0.15rem; font-size: 0.875rem; line-height: 1.35; color: #4a3f30; }
.sp-table a.c { font-size: 0.875rem; white-space: nowrap; }
.sp-k .sp-y { width: 7.5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-k .sp-form { width: 9rem; }
.sp-k .sp-form .sp-c { font-size: 1.12rem; font-weight: 700; letter-spacing: 0.01em; color: #1c2a3f; }
.sp-k .sp-go { width: 8rem; white-space: nowrap; }
.sp-k .sp-go a { display: inline-block; padding: 0.3rem 0; font-weight: 600; }
.sp-from { margin: 0.7rem 0 0; font-size: 0.93rem; color: #4a3f30; }

html.theme-dark .sp-lead, html.theme-dark .sp-table tbody th, html.theme-dark .sp-ev b, html.theme-dark .sp-k .sp-form .sp-c { color: #f6f1e7; }
html.theme-dark .sp-quote { border-left-color: #d8b366; }
html.theme-dark .sp-quote blockquote p { color: #e9dfc8; }
html.theme-dark .sp-quote figcaption, html.theme-dark .sp-table .why, html.theme-dark .sp-from { color: #d9cfb8; }
html.theme-dark .sp-wrap { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); }
html.theme-dark .sp-table th, html.theme-dark .sp-table td { border-top-color: rgba(216, 179, 102, 0.25); }
html.theme-dark .sp-table thead th { color: #d8b366; background: rgba(216, 179, 102, 0.1); }

/* a narrow window: each line of a table becomes a small card. The first cell is the card's head; the others stand as
   pairs, the name of the column to the left of its words */
@media (max-width: 760px) {
  .sp-lead { font-size: 1.1rem; }
  .sp-table, .sp-table tbody, .sp-table tr, .sp-table th, .sp-table td { display: block; width: auto; }
  .sp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .sp-table tr { padding: 0.65rem 0.8rem 0.7rem; border-top: 1px solid rgba(190, 150, 70, 0.45); }
  .sp-table tbody tr:first-child { border-top: 0; }
  html:not(#_):not(#__) .sp-table > tbody > tr > :is(td, th) { padding: 0.14rem 0 !important; border: 0 !important; }
  .sp-ev td, .sp-k .sp-by { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); column-gap: 0.7rem; align-items: baseline; }
  .sp-ev td::before, .sp-k .sp-by::before { content: attr(data-label); font: 700 0.8125rem/1.35 -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: #6b5220; }
  html:not(#_):not(#__) .sp-ev > tbody > tr > th { padding-bottom: 0.3rem !important; }
  .sp-k .sp-y, .sp-k .sp-form, .sp-k .sp-go { width: auto; }
  .sp-k .sp-y, .sp-k .sp-form { display: inline-block; margin-right: 0.6rem; vertical-align: baseline; }
  .sp-k .sp-go a { padding: 0.5rem 0 0.2rem; }
  html.theme-dark .sp-table tr { border-top-color: rgba(216, 179, 102, 0.3); }
  html.theme-dark .sp-ev td::before, html.theme-dark .sp-k .sp-by::before { color: #d8b366; }
}
@media print {
  .sp-wrap { border-color: #999; background: none; }
  .sp-table tr { break-inside: avoid; }
}
