/* person-pages.css: the record pages of people/ and children/, and the short generated pages of phase 2 (20 Nov 2026).
   Written by scripts/build-person-pages.py and scripts/build-site-pages.py; with start-page.css. All rules are .ppg-. */
.ppg-main { max-width: 52rem; font-weight: 500; }
.ppg-lead { font-size: 1.08rem; line-height: 1.6; margin: 0 0 1rem; }
.ppg-door { max-width: 30rem; }
.ppg-reg { background: var(--bk-paper-card); border: 1px solid rgba(190, 150, 70, 0.55); border-left: 4px solid var(--bk-gilt); border-radius: 0 5px 5px 0; padding: 0.9rem 1.15rem; line-height: 1.6; }
.ppg-reg p { margin: 0 0 0.7rem; } .ppg-reg ul { margin: 0.3rem 0 0; padding-left: 1.1rem; } .ppg-reg li { margin: 0 0 0.45rem; }
.ppg-reg a.c, .ppg-tab a.c { font-size: 0.82em; text-decoration: none; white-space: nowrap; }
.ppg-ennote { font-size: 0.9em; color: #6a5a40; }
.ppg-note { font-size: 0.88rem; color: #6a5a40; line-height: 1.5; margin: 0.7rem 0 0; }
.ppg-tablewrap { overflow-x: auto; }
.ppg-tab { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ppg-tab th, .ppg-tab td { text-align: left; vertical-align: top; padding: 0.4rem 0.55rem; border-bottom: 1px solid rgba(190, 150, 70, 0.35); }
.ppg-tab tbody th, .ppg-tab tr > th:first-child { font-weight: 600; white-space: nowrap; color: var(--bk-navy); }
.ppg-tab thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6a5a40; }
.ppg-yrs { color: #6a5a40; font-variant-numeric: tabular-nums; }
.ppg-lvl, .ppg-grade { display: inline-block; font-size: 0.78rem; padding: 0.08rem 0.5rem; border-radius: 999px; border: 1px solid #b8893a; color: #5a4c38; white-space: nowrap; }
.ppg-lvl { background: transparent; } .ppg-dash { border-style: dashed; }
/* the level is shown by the tree's own sign before the words: a full disc for Confirmed, a half disc for Read from the record, a ring for Unverified */
.ppg-lvl::before { content: ""; display: inline-block; width: 0.62em; height: 0.62em; margin-right: 0.38em; border-radius: 50%; border: 1.5px solid currentColor; vertical-align: -0.02em; }
.ppg-full::before { background: currentColor; } .ppg-half::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); } .ppg-ring::before { background: transparent; }
.ppg-grade { background: rgba(216, 179, 102, 0.18); }
.ppg-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.ppg-fig { margin: 0; background: var(--bk-paper-card); border: 1px solid rgba(190, 150, 70, 0.5); border-radius: 5px; padding: 0.6rem; }
.ppg-fig img { display: block; width: 100%; height: auto; border-radius: 3px; }
.ppg-fig figcaption { font-size: 0.86rem; line-height: 1.45; margin-top: 0.5rem; }
.ppg-fig .credit, .ppg-fig .book-credit { color: #6a5a40; }
.ppg-fig .credit { display: block; margin-top: 0.3rem; }
.ppg-in { display: inline-block; margin-top: 0.25rem; font-weight: 600; white-space: nowrap; }
.ppg-list { margin: 0; padding: 0; list-style: none; }
.ppg-list li { padding: 0.7rem 0; border-bottom: 1px solid rgba(190, 150, 70, 0.35); line-height: 1.55; }
.ppg-list .ppg-date { display: block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #6a5a40; }
.ppg-box { background: rgba(216, 179, 102, 0.12); border-left: 4px solid var(--bk-gilt); border-radius: 0 5px 5px 0; padding: 0.9rem 1.15rem; line-height: 1.6; margin: 0 0 1rem; }
.ppg-box p { margin: 0 0 0.6rem; } .ppg-box p:last-child { margin: 0; }
/* 24 Nov 2026: the life line above "Read the chapter" (born, married, died), from the family tree data. */
.ppg-life { display: flex; flex-wrap: wrap; gap: 0.35rem 1.6rem; margin: 1.4rem 0 0; padding: 0 0 0.8rem; border-bottom: 1px solid rgba(190, 150, 70, 0.45); font-size: 1.02rem; line-height: 1.5; }
.ppg-life > div { min-width: 0; }
.ppg-life dt { display: inline; margin: 0 0.4rem 0 0; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #6a5a40; }
.ppg-life dd { display: inline; margin: 0; }
.ppg-main .ppg-life + .stx-sec { padding-top: 1.2rem; }
.ppg-head-txt > .ppg-life { margin-top: 0; }
html.theme-dark .ppg-life { border-color: rgba(216, 179, 102, 0.45); }
html.theme-dark .ppg-life dt { color: #c8b896; }
@media (max-width: 600px) { .ppg-life { flex-direction: column; gap: 0.25rem; } }
html.theme-dark .ppg-reg, html.theme-dark .ppg-fig { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); }
html.theme-dark .ppg-note, html.theme-dark .ppg-ennote, html.theme-dark .ppg-yrs, html.theme-dark .ppg-tab thead th, html.theme-dark .ppg-fig .credit, html.theme-dark .ppg-list .ppg-date { color: #c8b896; }
html.theme-dark .ppg-tab tbody th, html.theme-dark .ppg-tab tr > th:first-child { color: #f6f1e7; }
html.theme-dark .ppg-lvl, html.theme-dark .ppg-grade { color: #e9dfc8; border-color: #d8b366; }
@media (max-width: 600px) { .ppg-tab { font-size: 0.88rem; } .ppg-tab th, .ppg-tab td { padding: 0.35rem 0.4rem; } .ppg-tab tbody th { white-space: normal; } }
/* SITEF (20 Nov 2026): portrait slot (only pictures in data/web-pictures-cleared.json), "In the records", passages,
   Appendix B online (descendants.html), and the one-line entries of people/index.html. */
.ppg-portrait { float: right; margin: 0 0 1rem 1.2rem; max-width: 12rem; }
.ppg-portrait img { display: block; width: 100%; height: auto; border: 3px solid var(--bk-gilt); border-radius: 4px; }
.ppg-portrait figcaption { font-size: 0.82rem; color: #6a5a40; line-height: 1.4; margin-top: 0.4rem; }
.ppg-passages { margin: 0.6rem 0 0; padding-left: 1.1rem; line-height: 1.55; }
.ppg-appb .reg-entry, .ppg-appb p[id^="reg-"] { scroll-margin-top: 5rem; }
.ppg-appb li[id^="reg-"] { scroll-margin-top: 5rem; }
.ppg-appb :target { background: rgba(216, 179, 102, 0.22); }
.ppx-lines { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.ppx-lines li { padding: 0.65rem 0; border-bottom: 1px solid rgba(190, 150, 70, 0.35); line-height: 1.55; scroll-margin-top: 5rem; }
.ppx-lines li:target { background: rgba(216, 179, 102, 0.18); }
.ppx-lines .r { display: block; font-size: 0.92rem; color: #5a4c38; }
.ppx-lines .ppx-sub { display: block; font-size: 0.9rem; margin-top: 0.15rem; }
html.theme-dark .ppg-portrait figcaption, html.theme-dark .ppx-lines .r { color: #c8b896; }
@media (max-width: 600px) { .ppg-portrait { float: none; margin: 0 0 1rem; } }
/* 20 Nov 2026: the facts block of a candidate's page (scripts/build-site-pages.py, facts_lead). */
.ppg-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.1rem; margin: 0 0 0.8rem; line-height: 1.55; }
.ppg-facts dt { font-weight: 700; } .ppg-facts dd { margin: 0; }
@media (max-width: 560px) { .ppg-facts { grid-template-columns: 1fr; } .ppg-facts dd { margin-bottom: 0.4rem; } }
/* 24 Nov 2026: the head of a person page, above and beside "Read the chapter": the cleared portrait, a record image the
   chapter shows (full width, over the door), or the family emblem. */
.ppg-head { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0 1.6rem; align-items: start; margin-top: 1.4rem; padding: 1.1rem 1.2rem 1.2rem; background: var(--bk-paper-card, #fffaf0); border: 1px solid rgba(190, 150, 70, 0.5); border-top: 4px solid var(--bk-gilt, #d8b366); border-radius: 5px; }
.ppg-head-portrait { grid-template-columns: 12rem minmax(0, 1fr); }
.ppg-head-record { grid-template-columns: minmax(0, 1fr); }
.ppg-head-pic { margin: 0; }
.ppg-head-emblem .ppg-head-pic { width: 7rem; padding-top: 2.7rem; }
.ppg-head-emblem .ppg-head-pic img { display: block; width: 100%; height: auto; border: 0; background: none; box-shadow: none; }
.ppg-head-record .ppg-head-pic { margin-bottom: 1.1rem; }
.ppg-head-record .ppg-head-pic a { display: block; }
.ppg-head-record .ppg-head-pic img { display: block; width: 100%; height: auto; max-height: 16rem; object-fit: contain; object-position: left center; background: #ece6d8; border: 1px solid rgba(190, 150, 70, 0.55); border-radius: 3px; }
.ppg-head .ppg-portrait { float: none; margin: 0; max-width: none; padding-top: 2.7rem; }
.ppg-head-txt { min-width: 0; }
.ppg-head-txt > .stx-sec { padding-top: 0; }
.ppg-head-txt .ppg-door { max-width: 34rem; }
html.theme-dark .ppg-head { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); border-top-color: #d8b366; }
html.theme-dark .ppg-head-record .ppg-head-pic img { background: #131d2b; border-color: rgba(216, 179, 102, 0.45); }
@media (forced-colors: active) { .ppg-head { border: 1px solid CanvasText; } }
@media (max-width: 600px) {
  .ppg-head { grid-template-columns: minmax(0, 1fr); padding: 0.9rem 0.85rem 1rem; }
  .ppg-head-emblem .ppg-head-pic, .ppg-head .ppg-portrait { padding-top: 0; margin-bottom: 0.9rem; }
  .ppg-head-emblem .ppg-head-pic { width: 4.5rem; }
  .ppg-head .ppg-portrait { max-width: 14rem; }
}
/* the parish search by ring (what-was-searched.html): fixed columns, the figures to the right in even widths, headings
   broken between words only */
.ppg-tab.ring-tab { table-layout: fixed; width: 100%; }
.ppg-tab.ring-tab thead th:nth-child(1) { width: 24%; } .ppg-tab.ring-tab thead th:nth-child(2) { width: 8%; } .ppg-tab.ring-tab thead th:nth-child(3) { width: 32%; }
.ppg-tab.ring-tab thead th:nth-child(n+4) { width: 9%; }
/* the narrow columns' headings: closer letters and less side room, so the longest word (Searched) fits its column; the !important answers the site-wide table heading rule in site-improve.css (17.3) */
html:not(#_):not(#__) .ppg-tab.ring-tab thead th:nth-child(n+2) { letter-spacing: 0.02em !important; padding-left: 0.35rem !important; padding-right: 0.35rem !important; }
.ppg-tab.ring-tab :is(th, td):nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; }
.ppg-tab.ring-tab :is(th, td) { box-sizing: border-box; }
html:not(#_):not(#__) .ppg-tab.ring-tab th { overflow-wrap: normal; word-break: normal; hyphens: none; }
.ppg-tab.ring-tab tbody th { white-space: normal; }
/* person pages on a phone: "Dates and family" fits the column; each row is two columns, the row's name | the value over
   the level marks */
@media (max-width: 640px) {
  main[data-built-by="build-person-pages"] .ppg-tab:not(:has(> thead)), main[data-built-by="build-person-pages"] .ppg-tab:not(:has(> thead)) > tbody { display: block; table-layout: fixed; width: 100%; }
  main[data-built-by="build-person-pages"] .ppg-tab:not(:has(> thead)) tr { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); }
  main[data-built-by="build-person-pages"] .ppg-tab:not(:has(> thead)) th { grid-row: span 2; width: auto; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  main[data-built-by="build-person-pages"] .ppg-tab:not(:has(> thead)) td { display: block; grid-column: 2; min-width: 0; }
  main[data-built-by="build-person-pages"] .ppg-tab:not(:has(> thead)) td:not(:last-child) { border-bottom: 0; }
  main[data-built-by="build-person-pages"] .ppg-tab:not(:has(> thead)) td:last-child:not([colspan]) { padding-top: 0; border-top: 0; }
  main[data-built-by="build-person-pages"] .ppg-tab:not(:has(> thead)) :is(.ppg-lvl, .ppg-grade) { white-space: normal; }
}

/* ---- What was searched: a small emblem beside each heading, and room between the ring table and the boxes under it.
   The emblems are the book's chapter-head drawings; the rings emblem is drawn here; they hang on the section ids the page builder writes, so every build keeps them. ---- */
main[data-built-by="build-site-pages"]:has(table.ring-tab) > section.stx-sec { position: relative; }
main[data-built-by="build-site-pages"]:has(table.ring-tab) > section.stx-sec:is(#home, #rings, #crossing, #stlouis, #register, #kinds)::before { content: ""; position: absolute; left: 0; top: 1.85rem; width: 3.9rem; height: 3.9rem; background-position: center; background-size: contain; background-repeat: no-repeat; }
main[data-built-by="build-site-pages"]:has(table.ring-tab) > section.stx-sec:is(#home, #rings, #crossing, #stlouis, #register, #kinds) > :is(.stx-kicker, h2):not(#_) { padding-left: 4.7rem !important; }
main[data-built-by="build-site-pages"]:has(table.ring-tab) > section.stx-sec:is(#home, #rings, #crossing, #stlouis, #register, #kinds) > .stx-kicker { display: block; }
main[data-built-by="build-site-pages"]:has(table.ring-tab) > #home::before { background-image: url("../read/img/decor_head_font_ink.svg"); }
main[data-built-by="build-site-pages"]:has(table.ring-tab) > #rings::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 116%22%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2247%22 stroke=%22%23262626%22 stroke-width=%221.6%22 fill=%22none%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2243.5%22 stroke=%22%23262626%22 stroke-width=%220.6%22 fill=%22none%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2233%22 stroke=%22%23262626%22 stroke-width=%221.1%22 stroke-dasharray=%222.2 2.6%22 fill=%22none%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2222%22 stroke=%22%23262626%22 stroke-width=%221.3%22 fill=%22none%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2210.5%22 stroke=%22%23262626%22 stroke-width=%221.6%22 fill=%22%23fbf7ee%22/%3E%3Ccircle cx=%2260%22 cy=%2224%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2283%22 cy=%2240%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2288%22 cy=%2266%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2238%22 cy=%2234%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2230%22 cy=%2262%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2247%22 cy=%2284%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2272%22 cy=%2282%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2260%22 cy=%2235%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2279%22 cy=%2256%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2249%22 cy=%2272%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2241%22 cy=%2250%22 r=%221.9%22 fill=%22%23262626%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%223.4%22 fill=%22%23262626%22/%3E%3C/svg%3E"); }
main[data-built-by="build-site-pages"]:has(table.ring-tab) > #crossing::before { background-image: url("../read/img/decor_head_sailing_ship_ink.svg"); }
main[data-built-by="build-site-pages"]:has(table.ring-tab) > #stlouis::before { background-image: url("../read/img/decor_head_house_ink.svg"); }
main[data-built-by="build-site-pages"]:has(table.ring-tab) > :is(#register, #kinds)::before { background-image: url("../read/img/decor_head_book_ink.svg"); }
html.theme-dark main[data-built-by="build-site-pages"]:has(table.ring-tab) > #home::before { background-image: url("../read/img/decor_head_font_gilt.svg"); }
html.theme-dark main[data-built-by="build-site-pages"]:has(table.ring-tab) > #rings::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 116%22%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2247%22 stroke=%22%23d8b366%22 stroke-width=%221.6%22 fill=%22none%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2243.5%22 stroke=%22%23d8b366%22 stroke-width=%220.6%22 fill=%22none%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2233%22 stroke=%22%23d8b366%22 stroke-width=%221.1%22 stroke-dasharray=%222.2 2.6%22 fill=%22none%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2222%22 stroke=%22%23d8b366%22 stroke-width=%221.3%22 fill=%22none%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%2210.5%22 stroke=%22%23d8b366%22 stroke-width=%221.6%22 fill=%22%2318253a%22/%3E%3Ccircle cx=%2260%22 cy=%2224%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2283%22 cy=%2240%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2288%22 cy=%2266%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2238%22 cy=%2234%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2230%22 cy=%2262%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2247%22 cy=%2284%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2272%22 cy=%2282%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2260%22 cy=%2235%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2279%22 cy=%2256%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2249%22 cy=%2272%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2241%22 cy=%2250%22 r=%221.9%22 fill=%22%23d8b366%22/%3E%3Ccircle cx=%2260%22 cy=%2256%22 r=%223.4%22 fill=%22%23d8b366%22/%3E%3C/svg%3E"); }
html.theme-dark main[data-built-by="build-site-pages"]:has(table.ring-tab) > #crossing::before { background-image: url("../read/img/decor_head_sailing_ship_gilt.svg"); }
html.theme-dark main[data-built-by="build-site-pages"]:has(table.ring-tab) > #stlouis::before { background-image: url("../read/img/decor_head_house_gilt.svg"); }
html.theme-dark main[data-built-by="build-site-pages"]:has(table.ring-tab) > :is(#register, #kinds)::before { background-image: url("../read/img/decor_head_book_gilt.svg"); }
main[data-built-by="build-site-pages"]:has(table.ring-tab) .ppg-tablewrap { margin-bottom: 1.8rem; }
main[data-built-by="build-site-pages"]:has(table.ring-tab) .ppg-tablewrap + .stx-doors { margin-top: 1.8rem; }
main[data-built-by="build-site-pages"]:has(table.ring-tab) > section.stx-sec > p + .stx-doors { margin-top: 1.3rem; }
@media (max-width: 640px) {
  main[data-built-by="build-site-pages"]:has(table.ring-tab) > section.stx-sec:is(#home, #rings, #crossing, #stlouis, #register, #kinds)::before { width: 2.6rem; height: 2.6rem; }
  main[data-built-by="build-site-pages"]:has(table.ring-tab) > section.stx-sec:is(#home, #rings, #crossing, #stlouis, #register, #kinds) > :is(.stx-kicker, h2):not(#_) { padding-left: 3.2rem !important; }
}
@media print { main[data-built-by="build-site-pages"]:has(table.ring-tab) > section.stx-sec::before { display: none; } }
main[data-built-by="build-site-pages"] table.kinds-tab :is(td, thead th:not(:first-child)) { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
main[data-built-by="build-site-pages"] table.kinds-tab th[scope="row"] { font-weight: 600; }
