/* page-frame.css: one text column on the hand-written pages (ASSESS40 item 5, part one: line length). 19 Nov 2026.
   On a screen of 900px or wider, a block of a page's main part that holds only text is set to the width of a book
   chapter (46rem, the width assets/site-improve.css already gives a plain paragraph) and stands in the middle, under
   the centered page head. A block keeps its full width when it is, or holds, a picture, a chart, a map, a family
   tree, a frame, a search box or a pick list, a table of three or more columns, or a row of boxes side by side (named by class: grid, tree,
   chart, map, timeline, strip, gallery, cols, columns, -bar, embed, viewer, metrics, stats, .sie, .kids, .arc,
   .status-summary, .puzzle-deep-dives, .source-list). One level down, inside a
   section or an article that keeps its width for such a reason, the plain text blocks are set the same way.
   Reached: a main part without a class name (the hand-written pages), the three research logs (.cine-content),
   the-case.html (.case), and the pages without a main part (body > .page-column). Not touched: every main part
   with a class of its own (the home page, the book chapters, the pages built with the kit, the German pages),
   phones and tablets under 900px, print. No color, no size of letters, no word is set here: only the width of a block and its
   place. The rule has the weight of one tag name, so a width a page sets for a block of its own stays.
   The blocks are named by tag so that a browser tests only those, not every row and cell of a long table.
   A browser that does not know :has() or :where() leaves the pages as they were. */
@media screen and (min-width: 900px) {
  :where(html body:not(.home) :is(:is(main:is(:not([class]), .cine-content, .case):not(:has(> .stx-main)), body > .page-column:not(:has(main))), :is(main:is(:not([class]), .cine-content, .case):not(:has(> .stx-main)), body > .page-column:not(:has(main))) > :is(section, article):is(:is(div, section, article, aside, nav, ul, ol, dl):is([class*="grid"]:not(.oq-grid), [class*="tree"], [class*="chart"], [class*="map"], [class*="timeline"], [class*="strip"], [class*="gallery"], [class*="cols"], [class*="columns"], [class*="-bar"], [class*="embed"], [class*="viewer"], [class*="metrics"], [class*="stats"], .sie, .kids, .arc, .status-summary, .puzzle-deep-dives, .source-list), :has(tr > :nth-child(3), img, picture, figure, svg, canvas, iframe, video, object, embed, select, textarea, input:not([type="checkbox"], [type="radio"], [type="hidden"]), .leaflet-container, :is(div, section, article, aside, nav, ul, ol, dl):is([class*="grid"]:not(.oq-grid), [class*="tree"], [class*="chart"], [class*="map"], [class*="timeline"], [class*="strip"], [class*="gallery"], [class*="cols"], [class*="columns"], [class*="-bar"], [class*="embed"], [class*="viewer"], [class*="metrics"], [class*="stats"], .sie, .kids, .arc, .status-summary, .puzzle-deep-dives, .source-list))))) > :is(div, section, article, aside, details, p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, footer, header, nav, pre, form, address):where(:not(:is(div, section, article, aside, nav, ul, ol, dl):is([class*="grid"]:not(.oq-grid), [class*="tree"], [class*="chart"], [class*="map"], [class*="timeline"], [class*="strip"], [class*="gallery"], [class*="cols"], [class*="columns"], [class*="-bar"], [class*="embed"], [class*="viewer"], [class*="metrics"], [class*="stats"], .sie, .kids, .arc, .status-summary, .puzzle-deep-dives, .source-list)):not(:has(tr > :nth-child(3), img, picture, figure, svg, canvas, iframe, video, object, embed, select, textarea, input:not([type="checkbox"], [type="radio"], [type="hidden"]), .leaflet-container, :is(div, section, article, aside, nav, ul, ol, dl):is([class*="grid"]:not(.oq-grid), [class*="tree"], [class*="chart"], [class*="map"], [class*="timeline"], [class*="strip"], [class*="gallery"], [class*="cols"], [class*="columns"], [class*="-bar"], [class*="embed"], [class*="viewer"], [class*="metrics"], [class*="stats"], .sie, .kids, .arc, .status-summary, .puzzle-deep-dives, .source-list)))) { max-width: 46rem; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
}

/* ---- Part two (FRAME40b), 19 Nov 2026: one ground and one size for running text. Part one above is unchanged. ----
   2. The ground. A page that gives its body no ground of its own stood on white; every other page stands on the
   cream of the site. The rule has no weight at all, so any ground a page or a theme sets wins over it.
   3. The size of running text. On the same hand-written pages as part one, at every width, a paragraph without a
   class, a list without a class and a list item without a class in such a list are never smaller than 1.05rem
   (16.8px), the size the text of a section has on most pages; where the box around it has larger letters, it takes
   those. Text with a class of its own (a small note, a verdict, a source list) keeps its size, and so does text in
   a table, a figure, a page head, a foot, a row of links, and in the rows of boxes that part one keeps wide (cards
   and tiles). Two places are left out by name: the rows of the Koster letters (.kp-row), which set the German
   beside the English in two sizes on purpose, and the paragraphs of the part section#charles.page (charles-in-america.html), which
   index-overrides.css already sets a little larger (1.06rem). The rule carries no id, so where site-improve.css sets a size with one
   (a plain paragraph directly in the main part: 1.0625rem), that size stays. */
:where(body) { background-color: #f6f1e7; }
@media screen {
  :where(html body:not(.home) :is(main:is(:not([class]), .cine-content, .case):not(:has(> .stx-main)), body > .page-column:not(:has(main)))) :is(p, ul, ol, :is(ul, ol):not([class]) > li):not([class]):not(:is(table, figure, figcaption, nav, header, footer, .crumbs, .kp-row, :is(div, section, article, aside, nav, ul, ol, dl):is([class*="grid"]:not(.oq-grid), [class*="tree"], [class*="chart"], [class*="map"], [class*="timeline"], [class*="strip"], [class*="gallery"], [class*="cols"], [class*="columns"], [class*="-bar"], [class*="embed"], [class*="viewer"], [class*="metrics"], [class*="stats"], .sie, .kids, .arc, .status-summary, .puzzle-deep-dives, .source-list)) *):not(:where(section#charles.page) p) { font-size: max(1.05rem, 1em) !important; }
}

/* 4. The quick facts of an "At a glance" card (.summary-card .quick-facts; the folders' _shared.css sets them as
   boxes side by side, each at least 220px wide, as many as fit). In the text column of part one three fit where
   four did, and with four, five, seven or eight boxes the last row came out short (3 and 1, 3 and 2). From 771px,
   the width from which three fit, the boxes stand three in a row and the boxes of the last rows are made wider so
   that every row is full: one box left over, and the last four stand two and two; two left over, and those two
   share the last row. Under 771px two boxes fit in a row, or one; a last box that stands alone takes the whole
   row. The rules count the boxes themselves, so a card with another number of facts needs no change here. They
   outweigh the rule of _shared.css by one class name and set only the columns: no color, no size, no word. */
@media screen and (min-width: 771px) {
  :where(html body:not(.home) :is(main:is(:not([class]), .cine-content, .case):not(:has(> .stx-main)), body > .page-column:not(:has(main)))) .summary-card .quick-facts.quick-facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  :where(html body:not(.home) :is(main:is(:not([class]), .cine-content, .case):not(:has(> .stx-main)), body > .page-column:not(:has(main)))) .summary-card .quick-facts.quick-facts > * { grid-column: span 2; }
  :where(html body:not(.home) :is(main:is(:not([class]), .cine-content, .case):not(:has(> .stx-main)), body > .page-column:not(:has(main)))) .summary-card .quick-facts.quick-facts > :is(:nth-last-child(4):nth-child(3n + 1), :nth-last-child(4):nth-child(3n + 1) ~ *, :nth-last-child(2):nth-child(3n + 1), :nth-last-child(2):nth-child(3n + 1) ~ *) { grid-column: span 3; }
  :where(html body:not(.home) :is(main:is(:not([class]), .cine-content, .case):not(:has(> .stx-main)), body > .page-column:not(:has(main)))) .summary-card .quick-facts.quick-facts > :only-child { grid-column: 1 / -1; }
}
@media screen and (max-width: 770.98px) {
  :where(html body:not(.home) :is(main:is(:not([class]), .cine-content, .case):not(:has(> .stx-main)), body > .page-column:not(:has(main)))) .summary-card .quick-facts.quick-facts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 5. One table of labels and values has no style of its own (table.vitals, children/bertha.html), so the browser
   shares out its width by the words in it. In the text column of part one its labels ("Name as recorded") broke
   into two lines. Where part one holds, a label of that table stays on one line. */
@media screen and (min-width: 900px) {
  :where(html body:not(.home) :is(main:is(:not([class]), .cine-content, .case):not(:has(> .stx-main)), body > .page-column:not(:has(main)))) table.vitals td:first-child { white-space: nowrap; }
}
