/* how-related.css: how-are-we-related.html, "How Are We Related?" (website idea 9).
   Used with assets/start-page.css (.stx-*). Colours for the light and the dark theme are set here; text 4.5:1 or
   better, marks, edges of controls and rings 3:1 or better, in both. */
.rel-main { --rel-ink: #1c2a3f; --rel-soft: #4a5568; --rel-line: #7d838d; --rel-gold: #8a6a1f; --rel-card: #fbf8f1; --rel-field: #ffffff; --rel-ring: #10203a; --rel-hit: #f3dfa6; --rel-hitink: #1c2a3f; --rel-numbg: #1c2a3f; --rel-numfg: #ffffff; --rel-head: #eef0f4; }
html.theme-dark .rel-main, body.theme-dark .rel-main { --rel-ink: #eef1f6; --rel-soft: #c3cad6; --rel-line: #8c95a5; --rel-gold: #e2c36b; --rel-card: #1b2434; --rel-field: #101827; --rel-ring: #f2d98a; --rel-hit: #e2c36b; --rel-hitink: #141b28; --rel-numbg: #e2c36b; --rel-numfg: #141b28; --rel-head: #232e42; }
.rel-main .rel-lead { max-width: 46rem; color: var(--rel-ink); }
.rel-main .rel-noscript { max-width: 46rem; padding: .8rem 1rem; border: 1px solid var(--rel-line); border-left: 4px solid var(--rel-gold); border-radius: 6px; background: var(--rel-card); color: var(--rel-ink); }
.rel-main [hidden] { display: none !important; }
.rel-main .rel-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1.2rem 0 1rem; }
@media (min-width: 48rem) { .rel-main .rel-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; } }
.rel-main .rel-who { margin: 0; padding: 1rem 1.1rem 1.2rem; min-width: 0; background: var(--rel-card); border: 1px solid var(--rel-line); border-top: 4px solid var(--rel-gold); border-radius: 6px; }
.rel-main .rel-who legend { padding: 0 .4rem; font-weight: 700; font-size: 1.05rem; color: var(--rel-ink); }
.rel-main .rel-who label { display: block; margin: .7rem 0 .3rem; font-size: .92rem; color: var(--rel-soft); }
.rel-main .rel-who select { display: block; box-sizing: border-box; width: 100%; min-height: 2.75rem; padding: .45rem .6rem; font: inherit; font-size: 1rem; color: var(--rel-ink); background: var(--rel-field); border: 1.5px solid var(--rel-line); border-radius: 5px; }
.rel-main .rel-quote { max-width: 46rem; margin: .6rem 0; padding-left: .9rem; border-left: 3px solid var(--rel-gold); color: var(--rel-ink); font-size: .97rem; line-height: 1.55; }
.rel-main .rel-says { color: var(--rel-soft); font-size: .9rem; }
.rel-main .rel-quote q { quotes: "“" "”" "‘" "’"; }
.rel-main .rel-result { margin: 1.2rem 0 .8rem; padding: 1rem 1.2rem 1.1rem; background: var(--rel-card); border: 1px solid var(--rel-line); border-left: 4px solid var(--rel-gold); border-radius: 6px; }
.rel-main .rel-result h3 { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--rel-ink); }
.rel-main .rel-result p { margin: 0 0 .55rem; max-width: 46rem; color: var(--rel-ink); line-height: 1.55; }
.rel-main .rel-result p:last-child { margin-bottom: 0; }
.rel-main .rel-result .rel-empty { color: var(--rel-soft); }
.rel-main .rel-result .rel-answer { font-size: 1.2rem; font-weight: 700; }
.rel-main .rel-result .rel-care { padding-top: .55rem; border-top: 1px solid var(--rel-line); }
.rel-main .rel-twolines { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem 1.6rem; margin: .7rem 0; }
@media (min-width: 40rem) { .rel-main .rel-twolines { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.rel-main .rel-twolines h4 { margin: 0 0 .3rem; font-size: .9rem; font-weight: 600; color: var(--rel-soft); }
.rel-main .rel-twolines ol { margin: 0; padding-left: 1.3rem; color: var(--rel-ink); }
.rel-main .rel-twolines li { margin: 0 0 .2rem; line-height: 1.45; }
.rel-main .rel-twolines li.rel-you { list-style: none; margin-left: -1.3rem; color: var(--rel-soft); }
.rel-main .rel-tools { margin: .4rem 0 0; }
.rel-main .rel-tools button { min-height: 2.75rem; padding: .45rem 1.1rem; font: inherit; font-size: .97rem; font-weight: 600; color: var(--rel-ink); background: transparent; border: 1.5px solid var(--rel-line); border-radius: 999px; cursor: pointer; }
.rel-main .rel-tools button:hover { border-color: var(--rel-ink); }
.rel-main .rel-scroll { max-width: 100%; overflow-x: auto; margin: 1.2rem 0 .4rem; border: 1px solid var(--rel-line); border-radius: 6px; }
.rel-main table.rel-chart { border-collapse: collapse; width: 100%; min-width: 52rem; margin: 0; font-size: .9rem; line-height: 1.35; color: var(--rel-ink); background: var(--rel-card); }
.rel-main table.rel-chart caption { caption-side: top; padding: .6rem .8rem; text-align: left; font-weight: 700; color: var(--rel-ink); background: var(--rel-card); }
/* The lines, the padding and the head of the chart are the site's own (assets/site-improve.css, 17.3 "tables", with !important), as on every table of the site. */
.rel-main table.rel-chart th, .rel-main table.rel-chart td { text-align: left; vertical-align: top; color: var(--rel-ink); background: var(--rel-card); }
.rel-main table.rel-chart th { background: var(--rel-head); font-weight: 700; }
.rel-main table.rel-chart tbody th { text-align: center; width: 2.6rem; }
/* On a narrow screen the chart scrolls sideways inside its frame (.rel-scroll), and the counts down the side stay in view.
   The frame also carries the site's class "table-scroll", so that the site's script for wide tables (site-nav.js) does not put a second
   scroll box around the chart; assets/theme.css would make the table itself a scroll box on a phone, and the frame already is one. */
.rel-main .rel-scroll > table.rel-chart { display: table !important; overflow: visible !important; }
.rel-main table.rel-chart tbody th, .rel-main table.rel-chart thead th:first-child { position: sticky; left: 0; z-index: 1; }
.rel-main table.rel-chart caption { position: sticky; left: 0; box-sizing: border-box; max-width: calc(100vw - 3.2rem); }
.rel-main table.rel-chart td.rel-hit { background: var(--rel-hit); color: var(--rel-hitink); font-weight: 700; outline: 3px solid var(--rel-hitink); outline-offset: -3px; }   /* the ring is dark on the marked box in both themes */
.rel-main .rel-src { max-width: 46rem; margin: .3rem 0 1rem; font-size: .88rem; color: var(--rel-soft); }
.rel-main .rel-src a, .rel-main .rel-chap a, .rel-main .rel-morelist a { color: var(--rel-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rel-main .rel-gen { margin: 1.5rem 0 .6rem; font-size: 1.1rem; color: var(--rel-ink); }
.rel-main .rel-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem 1.4rem; }
@media (min-width: 52rem) { .rel-main .rel-people { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.rel-main .rel-people li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .9rem; background: var(--rel-card); border: 1px solid var(--rel-line); border-radius: 6px; }
html:not(#_) .rel-main .rel-people li { scroll-margin-top: 6.5rem; }
.rel-main .rel-no { flex: 0 0 auto; min-width: 2rem; height: 2rem; padding: 0 .3rem; box-sizing: border-box; border-radius: 1rem; background: var(--rel-numbg); color: var(--rel-numfg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; font-variant-numeric: lining-nums; }
.rel-main .rel-people p { margin: 0; color: var(--rel-ink); line-height: 1.45; }
.rel-main .rel-people .rel-life { color: var(--rel-soft); white-space: nowrap; }
.rel-main .rel-people .rel-line, .rel-main .rel-people .rel-chap { margin-top: .2rem; font-size: .9rem; color: var(--rel-soft); }
.rel-main .rel-people sup { font-size: .7em; font-style: italic; }
.rel-main #limits p, .rel-main #how p { max-width: 46rem; color: var(--rel-ink); }
.rel-main .rel-h3 { margin: 1.6rem 0 .5rem; font-size: 1.1rem; color: var(--rel-ink); }
.rel-main .rel-morelist { margin: 0; padding-left: 1.2rem; color: var(--rel-ink); }
.rel-main .rel-morelist li { margin: 0 0 .35rem; }
/* The site-wide rule "body.cine-typography *:focus-visible" sets a pale gilt ring with !important; on this page's light surfaces it is too faint. */
body .rel-main a:focus-visible, body .rel-main select:focus-visible, body .rel-main button:focus-visible, body .rel-main .rel-scroll:focus-visible { outline: 3px solid var(--rel-ring) !important; outline-offset: 2px !important; box-shadow: none !important; }
body .rel-main .stx-hero a:focus-visible, body .rel-main .stx-pills a:focus-visible { outline-color: #d8b366 !important; }   /* the head and the bar of the page are dark in both themes */
@media print { .rel-main .rel-form, .rel-main .rel-own, .rel-main .stx-pills { display: none !important; } .rel-main table.rel-chart { min-width: 0; font-size: .75rem; } }
.rel-main .rel-nb { white-space: nowrap; }
