/* Waugh Roots Tree — inherits the theme's fonts and colours, adds structure. */
.wrt { --wrt-accent: #6b3e26; --wrt-soft: #f6f1ea; --wrt-line: #e2d8cb; --wrt-muted: #6f6458; line-height: 1.55; }
.wrt a { text-decoration: none; }
.wrt a:hover, .wrt a:focus { text-decoration: underline; }
.wrt-h { font-size: 1.15em; margin: 1.6em 0 .6em; padding-bottom: .3em; border-bottom: 2px solid var(--wrt-line); color: var(--wrt-accent); }
.wrt-intro { font-size: 1.05em; }
.wrt-nav { background: var(--wrt-soft); border: 1px solid var(--wrt-line); border-radius: 6px; padding: .8em 1em; margin: 0 0 1.4em; }
.wrt-search { display: flex; gap: .5em; margin: 0 0 .7em; }
.wrt-search input[type=search] { flex: 1; min-width: 0; padding: .5em .7em; border: 1px solid var(--wrt-line); border-radius: 4px; font-size: 1em; }
.wrt-search button { padding: .5em 1.1em; border: 0; border-radius: 4px; background: var(--wrt-accent); color: #fff; cursor: pointer; font-size: 1em; }
.wrt-az { display: flex; flex-wrap: wrap; gap: .25em; }
.wrt-az a { display: inline-block; min-width: 1.9em; text-align: center; padding: .2em .3em; border-radius: 3px; background: #fff; border: 1px solid var(--wrt-line); font-weight: 600; }
.wrt-az a.current { background: var(--wrt-accent); color: #fff; border-color: var(--wrt-accent); }
.wrt-crumbs { margin-top: .6em; font-size: .9em; color: var(--wrt-muted); }
.wrt-featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7em; }
.wrt-card { display: block; padding: .8em 1em; border: 1px solid var(--wrt-line); border-left: 4px solid var(--wrt-accent); border-radius: 4px; background: #fff; }
.wrt-card strong { display: block; font-size: 1.1em; }
.wrt-card span { color: var(--wrt-muted); font-size: .85em; }
.wrt-surnames { columns: 4 12em; column-gap: 1.5em; list-style: none; margin: 0; padding: 0; }
.wrt-surnames li { break-inside: avoid; padding: .12em 0; }
.wrt-n { display: inline-block; font-size: .78em; background: var(--wrt-soft); border-radius: 9px; padding: 0 .5em; color: var(--wrt-muted); }
.wrt-life, .wrt-meta, .wrt-note, .wrt-count { color: var(--wrt-muted); font-size: .9em; }
.wrt-table { width: 100%; border-collapse: collapse; margin: .4em 0 1em; font-size: .95em; }
.wrt-table th { text-align: left; background: var(--wrt-soft); border-bottom: 2px solid var(--wrt-line); padding: .45em .6em; }
.wrt-table td { border-bottom: 1px solid var(--wrt-line); padding: .45em .6em; vertical-align: top; }
.wrt-table tbody tr:hover { background: #fbf8f4; }
.wrt-summary { font-size: 1.1em; font-style: italic; margin-bottom: 1em; }
.wrt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; }
.wrt-box .wrt-h { margin-top: .4em; }
.wrt-list { list-style: none; margin: 0; padding: 0; }
.wrt-list li { padding: .2em 0; }
.wrt-children { list-style: decimal; padding-left: 1.6em; }
.wrt-role { display: inline-block; min-width: 4.5em; font-size: .8em; text-transform: uppercase; letter-spacing: .04em; color: var(--wrt-muted); }
.wrt-unknown, .wrt-private { color: var(--wrt-muted); font-style: italic; }
.wrt-family { padding: .6em 1em; margin-bottom: .8em; border: 1px solid var(--wrt-line); border-radius: 6px; }
.wrt-family h3 { font-size: 1.05em; margin: .2em 0 .3em; }
.wrt-enote { font-size: .9em; color: var(--wrt-muted); margin-top: .3em; white-space: normal; }
.wrt-cite { font-size: .7em; margin-left: .15em; }
.wrt-ped-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: .6em; align-items: center; }
.wrt-ped-col { display: flex; flex-direction: column; gap: .5em; }
.wrt-ped-cell { padding: .5em .7em; border: 1px solid var(--wrt-line); border-radius: 4px; background: #fff; font-size: .92em; }
.wrt-ped-cell .wrt-role { display: block; min-width: 0; }
.wrt-ped-self .wrt-ped-cell { background: var(--wrt-soft); border-left: 4px solid var(--wrt-accent); }
.wrt-src ol { font-size: .9em; padding-left: 1.6em; }
.wrt-src li { margin-bottom: .4em; }
.wrt-sources { columns: 2 22em; column-gap: 2em; }
.wrt-sources li { break-inside: avoid; margin-bottom: .3em; }
.wrt-foot { margin-top: 2em; padding-top: .8em; border-top: 1px solid var(--wrt-line); font-size: .9em; color: var(--wrt-muted); }
.wrt-stats { display: flex; flex-wrap: wrap; gap: 1em; list-style: none; padding: 0; margin: 1em 0; }
.wrt-stats li { flex: 1 1 8em; text-align: center; padding: .8em; background: var(--wrt-soft); border-radius: 6px; }
.wrt-stats strong { display: block; font-size: 1.6em; color: var(--wrt-accent); }
.wrt-search-small { max-width: 30em; }
@media (max-width: 700px) {
	.wrt-grid, .wrt-ped-grid { grid-template-columns: 1fr; }
	.wrt-table th:nth-child(3), .wrt-table td:nth-child(3) { word-break: break-word; }
}
.wrt-surnames-compact { columns: 5 9em; font-size: .95em; }
.wrt ul.wrt-list > li, .wrt ul.wrt-surnames > li, .wrt ul.wrt-stats > li { list-style: none; }
.wrt ul.wrt-list > li::before, .wrt ul.wrt-surnames > li::before { content: none; display: none; }
.wrt ul.wrt-list, .wrt ul.wrt-surnames { margin-left: 0; padding-left: 0; }
