:root {
  --bg: #0a0b0a;
  --panel: rgba(23, 23, 18, .92);
  --panel-solid: #171712;
  --panel-soft: rgba(28, 26, 20, .88);
  --line: #b88a443b;
  --text: #f1ebe0;
  --muted: #bfb3a0;
  --gold: #d5ad6b;
  --orange: #d5ad6b;
  --orange-bright: #e4c48a;
  --cyan: #d5ad6b;
  --violet: #a89068;
  --cream: #ebe0cc;
  --shadow: rgba(0, 0, 0, .55);
  --focus: #d5ad6b;
  --radius: 2px;
  --glass: blur(10px) saturate(1.02);
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(213, 173, 107, .10), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(184, 138, 68, .06), transparent 30rem),
    linear-gradient(180deg, #12110e 0, var(--bg) 42rem);
  color: var(--text);
  font: 15px/1.55 Georgia, 'Times New Roman', serif;
  text-rendering: optimizeLegibility;
}

body.high-contrast {
  --bg: #000;
  --panel: #121212;
  --panel-soft: #1a1a1a;
  --line: #c9a46a;
  --text: #fff;
  --muted: #ddd;
  --orange: #e8c98a;
  --orange-bright: #f0d9a8;
  --cyan: #e8c98a;
  --gold: #e8c98a;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  color: #a9a9a9;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

#wrap {
  min-height: calc(100vh - 86px);
}


.site-header {
  background: #0c0d0ce8;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}

.header-top {
  min-height: 98px;
  height: auto;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 5vw;
  background: transparent;
}

.header-top::after { display: none; }
.header-photo { display: none; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-lockup img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-lockup .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-lockup .brand-kicker {
  margin: 0;
  font: 10px/1.4 system-ui, sans-serif;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-top h1 {
  position: static;
  margin: 0;
  font: 500 clamp(18px, 2.2vw, 28px)/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: .06em;
  text-shadow: none;
  z-index: auto;
}

.header-top h1 a,
.brand-lockup h1 {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.house-link {
  font: 11px system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.house-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-bottom {
  min-height: 0;
  position: relative;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.header-search {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  max-width: none;
  margin: 0;
  padding: 0;
}

.header-search input,
.table-tools input,
.chart-layout select {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #14120e;
  color: var(--text);
  min-height: 36px;
  min-width: min(240px, 42vw);
  padding: 6px 10px;
  font: 13px/1.4 system-ui, sans-serif;
}

.header-search input::placeholder { color: #8a8070; }

.header-search button {
  width: 40px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: #1a1812;
  color: var(--gold);
  cursor: pointer;
  font: 14px Georgia, serif;
}

.header-search button::before { content: "\2192"; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 5vw 14px;
  background: #0e0f0de6;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}

.main-nav a {
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font: 11px system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--gold);
  background: rgba(213, 173, 107, .08);
  color: var(--gold);
  transform: none;
}

.divider {
  height: 1px;
  background: var(--line);
}

#content {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 18px 40px;
}

.view {
  display: none;
}

.active-view {
  display: block;
  animation: viewIn .28s ease both;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 18px;
}


.hero-panel {
  min-height: 0;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, #0c0d0cf2 0%, #0c0d0ccf 48%, #14110ce0 100%),
    radial-gradient(circle at 80% 20%, rgba(213,173,107,.14), transparent 42%);
  box-shadow: none;
}
.home-hero { margin-bottom: 28px; }
.hero-lede {
  max-width: 38rem;
  color: var(--muted) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}
.home-stats { margin-bottom: 8px; }
.home-secondary { margin-top: 8px; }
.cta-primary {
  background: rgba(213, 173, 107, .18) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}


.kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-panel h2 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 58px);
  line-height: 1.05;
  font-weight: normal;
  text-shadow: 0 4px 24px #000;
}

.hero-panel p {
  max-width: 760px;
  color: #f0f0f0;
  font-size: 16px;
  line-height: 1.6;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-actions a,
.media-card a,
.video-card a,
.profile-actions button,
.profile-actions a {
  padding: 9px 12px;
  border: 1px solid rgba(255, 140, 0, .7);
  border-radius: 2px;
  background: rgba(255, 140, 0, .1);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.quick-actions a:hover,
.media-card a:hover,
.video-card a:hover,
.profile-actions button:hover,
.profile-actions a:hover {
  border-color: var(--cyan);
  background: rgba(70, 224, 208, .12);
  color: var(--text);
  transform: translateY(-1px);
}

.site-banner-rotator {
  position: relative;
  width: min(720px, calc(100% - 24px));
  height: 120px;
  max-height: 120px;
  margin: 24px auto 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: #141617;
  overflow: hidden;
  box-shadow:
    0 18px 48px var(--shadow),
    0 0 0 1px rgba(255, 255, 255, .04) inset;
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 120px;
  max-height: 120px;
  color: #f4efe7;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .8s ease;
}

.promo-slide.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.promo-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.38) 54%, rgba(0,0,0,.12)),
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, .24), transparent 32rem);
}

.promo-clovis::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.14) 52%, rgba(0,0,0,.54)),
    radial-gradient(circle at 84% 22%, rgba(212,175,55,.2), transparent 12rem);
}

.promo-veracity {
  background:
    linear-gradient(135deg, rgba(221,105,0,.2), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 76% 40%, rgba(221,105,0,.28), transparent 12rem),
    #222;
}

.promo-veracity::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.18) 58%, rgba(0,0,0,.5));
}

.promo-veracity-integrity img {
  object-position: center;
}

.promo-veracity-integrity::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.2) 58%, rgba(0,0,0,.42)),
    radial-gradient(circle at 74% 40%, rgba(0,229,255,.16), transparent 14rem);
}

.promo-spunweb {
  background:
    linear-gradient(135deg, rgba(84,192,176,.16), transparent 42%),
    radial-gradient(circle at 74% 46%, rgba(255,140,0,.26), transparent 12rem),
    linear-gradient(90deg, #141617, #2b2b2b 58%, #171717);
}

.promo-spunweb::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.18) 58%, rgba(0,0,0,.52));
}

.promo-kacey img {
  object-position: 68% center;
}

.promo-kacey::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.24) 52%, rgba(0,0,0,.3)),
    radial-gradient(circle at 82% 38%, rgba(255,255,255,.2), transparent 12rem);
}


.promo-slu2::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.2) 58%, rgba(0,0,0,.42)),
    radial-gradient(circle at 74% 40%, rgba(70,224,208,.16), transparent 14rem);
}

.promo-disruptarian::after {
  background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.16) 52%, rgba(0,0,0,.46));
}

.promo-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(48%, 360px);
  height: 100%;
  padding: 12px 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,.86);
}

.promo-clovis .promo-copy {
  margin-left: 0;
}

.promo-copy b {
  color: #f5df9a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1;
}

.promo-copy small {
  color: #f4efe7;
  font-size: clamp(10px, 1.8vw, 13px);
  line-height: 1.35;
  margin-top: 4px;
}

.block {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px var(--shadow), 0 0 0 1px rgba(255,255,255,.035) inset;
  overflow: clip;
  content-visibility: auto;
  contain-intrinsic-size: 340px;
  backdrop-filter: var(--glass);
}

.blockheader {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(90deg, rgba(255,140,0,.18), rgba(70,224,208,.08), rgba(255,255,255,.03)),
    rgba(255,255,255,.035);
  color: var(--text);
  font-size: 18px;
  font-weight: normal;
}

.blockcontent {
  padding: 16px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--orange-bright);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--text);
}

.breadcrumb-separator {
  color: #777;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  transition: transform .18s ease, border-color .18s ease;
}

.stat-card:hover,
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange-bright);
}

.stat-card strong {
  display: block;
  color: var(--cyan);
  font-size: 25px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.stat-card small {
  display: block;
  margin-top: 6px;
  color: #cbd2d9;
  font-size: 11px;
  line-height: 1.45;
}

.stat-card small a {
  color: var(--orange-bright);
}

.stat-highlight {
  border-color: rgba(255, 166, 77, 0.45);
  background: rgba(255, 166, 77, 0.08);
}

.news-list {
  display: grid;
  gap: 14px;
}


.archive-rotator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.archive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.archive-card p {
  margin: 0;
}

.archive-card a {
  justify-self: start;
  align-self: end;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 140, 0, .68);
  border-radius: 2px;
  background: rgba(255, 140, 0, .1);
  color: var(--text);
}

.archive-card a:hover {
  border-color: var(--cyan);
  background: rgba(70, 224, 208, .12);
  color: var(--text);
}

@media (max-width: 760px) {
  .archive-rotator {
    grid-template-columns: 1fr;
  }
}


.news-box {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.news-box h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.news-box time {
  color: var(--muted);
  font-size: 12px;
}

.news-box p,
.prose p {
  line-height: 1.65;
}

.prose h3 {
  margin: 22px 0 8px;
  color: var(--cyan);
  font-size: 18px;
}

.icon-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.icon-links a {
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  color: var(--text);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 2px;
  background: rgba(255, 255, 255, .045);
}

.compact-list {
  display: grid;
  gap: 9px;
}

.compact-list a {
  display: block;
  padding: 8px;
  border-bottom: 1px solid #4d4d4d;
}

.featured-profile-card {
  min-height: 176px;
}

.featured-profile-link {
  display: grid;
  gap: 12px;
  min-height: 176px;
  padding: 14px;
  border: 1px solid #555;
  background:
    linear-gradient(155deg, rgba(255, 140, 0, .12), rgba(255, 255, 255, .025) 48%, rgba(0, 0, 0, .2)),
    #303030;
  color: var(--text);
}

.featured-profile-photo,
.featured-profile-initials {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #4f4f4f;
  background: #242424;
  overflow: hidden;
}

.featured-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-profile-initials {
  color: var(--orange-bright);
  font-size: 40px;
}

.featured-profile-copy {
  display: grid;
  gap: 5px;
}

.featured-profile-copy b {
  color: var(--orange-bright);
  font-size: 20px;
  font-weight: normal;
}

.featured-profile-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.featured-profile-copy em {
  color: var(--text);
  font-style: normal;
  font-weight: bold;
}

.branch-intro p {
  max-width: 780px;
  margin-top: 0;
  color: var(--muted);
  line-height: 1.6;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.branch-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255,140,0,.14), rgba(70,224,208,.06) 48%, rgba(0,0,0,.18)),
    rgba(255, 255, 255, .045);
}

.branch-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: normal;
}

.branch-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.branch-surname {
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid var(--orange);
  color: var(--orange-bright);
  font-size: 12px;
  font-weight: bold;
}

.branch-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.branch-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #4c4c4c;
  padding-bottom: 7px;
}

.branch-card dt {
  color: var(--muted);
}

.branch-card dd {
  margin: 0;
  text-align: right;
}

.branch-people {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.branch-people b {
  color: var(--orange-bright);
}

.branch-people a {
  padding: 5px 0;
  border-bottom: 1px solid #4c4c4c;
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.branch-actions a {
  padding: 7px 9px;
  border: 1px solid var(--orange);
  background: rgba(0, 0, 0, .24);
  color: var(--text);
  font-size: 12px;
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.alpha-bar button,
.pager button {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 2px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  min-height: 30px;
  padding: 4px 8px;
  cursor: pointer;
}

.alpha-bar button.active,
.pager button:hover {
  border-color: var(--orange-bright);
  color: var(--orange-bright);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--cyan);
  font-weight: normal;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, .045);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.person-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.person-head.has-portrait {
  grid-template-columns: 112px minmax(0, 1fr) auto;
}

.profile-portrait {
  display: block;
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: #151819;
  overflow: hidden;
}

.profile-portrait img,
.media-thumb img,
.media-thumb iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: start;
}

.person-name {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.person-id {
  color: var(--muted);
}

.facts-grid,
.relatives-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.fact {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fact b {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
}

.stories-block {
  margin-top: 16px;
}

.stories-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.story-card {
  padding: 12px 14px;
  border-left: 3px solid var(--cyan);
  background: rgba(0, 0, 0, .18);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.story-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink, #f4f1ea);
}

.story-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.story-source {
  margin: 10px 0 0;
  font-size: .92rem;
  opacity: .85;
}

.story-source a {
  color: var(--cyan);
}

.connection-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.connection-group {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(0, 229, 255, .08), rgba(255, 139, 0, .06)),
    rgba(255, 255, 255, .04);
}

.connection-group b {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
}

.connection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.connection-links a {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  background: rgba(0, 0, 0, .22);
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.connection-links a:hover,
.connection-links a:focus-visible {
  border-color: rgba(0, 229, 255, .55);
  color: var(--cyan);
}

.connection-group span,
.connection-group small {
  color: var(--muted);
}

.associated-media {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.associated-media h3 {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: normal;
}

.associated-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.associated-media-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
}

.media-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: #1f1f1f;
  overflow: hidden;
}

.associated-media-item b {
  color: var(--text);
}

.associated-media-item span,
.associated-media-item small {
  color: var(--muted);
}

.associated-media-item a {
  color: var(--orange-bright);
  font-weight: bold;
}

.chart-layout {
  display: grid;
  gap: 20px;
}

.chart-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.relationship-map {
  min-height: 0;
  overflow: hidden;
}

.network-svg {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 360px);
  border: 1px solid #555;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    #303030;
  background-size: 28px 28px;
}

.network-svg text {
  fill: var(--text);
  font-size: 3.6px;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .82);
  stroke-width: .7px;
  stroke-linejoin: round;
  pointer-events: none;
}

.network-svg .node {
  fill: #272727;
  stroke: var(--orange-bright);
  stroke-width: 2;
}

.network-svg .root-node {
  fill: #4a2b0d;
}

.network-svg [data-role="parent"] {
  fill: #123740;
}

.network-svg [data-role="grand"] {
  fill: #26324a;
}

.network-svg [data-role="sibling"] {
  fill: #262f46;
}

.network-svg [data-role="spouse"] {
  fill: #3e2637;
}

.network-svg [data-role="child"] {
  fill: #263826;
}

.network-svg .node-role {
  fill: var(--cyan);
  font-size: 3px;
  stroke-width: .45px;
}

.network-svg .node-initials {
  fill: #fff;
  font-size: 3.2px;
  font-weight: bold;
  stroke-width: .35px;
}

.network-svg line {
  stroke: #777;
  stroke-width: 1.5;
}

.tree-chart {
  overflow: auto;
  max-height: 680px;
  padding: 12px;
  border: 1px solid #555;
  background: #303030;
}

.tree-node {
  margin: 6px 0 6px 14px;
  padding-left: 12px;
  border-left: 1px solid #666;
}

.tree-node > a {
  color: var(--text);
}

.tree-node small {
  display: block;
  color: var(--muted);
}

.place-list {
  columns: 2;
}

.place-item {
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #4c4c4c;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.media-intro {
  max-width: 760px;
  margin-top: 0;
  color: var(--muted);
  line-height: 1.6;
}

.media-review-note,
.associated-media p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.channel-link {
  margin-bottom: 18px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-card,
.media-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.video-card h3,
.media-card h3 {
  margin: 12px 0;
  line-height: 1.35;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.reference-frame {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(221,105,0,.28), transparent 42%),
    linear-gradient(135deg, #181818, #2a2a2a);
}

.reference-copy {
  display: grid;
  gap: 8px;
  text-align: left;
}

.reference-copy strong {
  color: var(--orange-bright);
  font-size: 18px;
}

.reference-copy span {
  color: var(--muted);
  line-height: 1.55;
}

.media-documents {
  margin-top: 18px;
}

.noscript-seo {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px;
  color: var(--text);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 210px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255,140,0,.12), rgba(70,224,208,.06) 45%, rgba(0,0,0,.16)),
    rgba(255, 255, 255, .045);
  transition: transform .18s ease, border-color .18s ease;
}

.feature-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--orange);
  color: var(--orange-bright);
  font-weight: bold;
}

.feature-card h3 {
  margin: 16px 0 8px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(12, 14, 15, .62);
  color: var(--muted);
  font-size: 12px;
}

footer div:nth-child(2) {
  text-align: center;
}

footer div:nth-child(3) {
  text-align: right;
}

footer div:nth-child(4) {
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .home-grid,
  .chart-columns,
  .facts-grid,
  .relatives-grid,
  .connection-summary,
  .video-grid,
  .branch-grid,
  .resources-grid,
  footer {
    grid-template-columns: 1fr;
  }

  .header-top h1 {
    left: 20px;
    right: 20px;
    bottom: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .place-list {
    columns: 1;
  }

  footer div,
  footer div:nth-child(2),
  footer div:nth-child(3),
  footer div:nth-child(4) {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .header-search {
    justify-content: stretch;
  }

  .header-search input {
    width: 100%;
  }

  .main-nav a {
    min-width: calc(50% - 6px);
  }

  .site-banner-rotator {
    width: calc(100% - 36px);
    height: 120px;
  }

  .promo-copy {
    width: 62%;
  }

  .person-head,
  .profile-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .person-head.has-portrait {
    grid-template-columns: 1fr;
  }

  .profile-portrait {
    width: min(160px, 55vw);
  }

  .profile-actions a,
  .profile-actions button {
    width: 100%;
    text-align: center;
  }

  .hero-panel {
    padding: 22px;
  }

  .stats-grid,
  .icon-links,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .network-svg text {
    font-size: 4.6px;
  }
}

/* Modern video loading: thumbnails first, iframe only after visitor action. */
.video-frame,
.video-thumb {
  position: relative;
}

.video-frame img,
.video-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-frame::after,
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .74));
}

.video-load {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  min-height: 40px;
  min-width: 122px;
  transform: translateX(-50%);
  padding: 0 14px;
  border: 1px solid rgba(255, 140, 0, .8);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(0, 0, 0, .78);
  cursor: pointer;
}

.video-load:hover,
.video-load:focus-visible {
  border-color: var(--cyan);
  background: rgba(70, 224, 208, .16);
}

.associated-media-item .video-thumb {
  aspect-ratio: 16 / 9;
}

/* Responsive and performance hardening added June 8, 2026. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
}

#wrap,
#content,
.view,
.home-grid,
.main-column,
.side-column,
.block,
.blockcontent,
.hero-panel,
.branch-card,
.news-box,
.fact,
.connection-group,
.video-card,
.media-card,
.archive-card,
.featured-profile-link {
  min-width: 0;
}

.block {
  overflow: hidden;
}

.blockcontent {
  overflow-wrap: anywhere;
}

.data-table {
  table-layout: fixed;
}

.data-table th,
.data-table td {
  overflow-wrap: anywhere;
}

.tree-chart,
.chart-columns,
.network-panel,
.network-svg,
.place-list,
.video-grid,
.media-grid,
.resources-grid {
  max-width: 100%;
}

.tree-chart,
.chart-columns,
.network-panel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.media-thumb,
.video-frame,
.video-thumb {
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
}

.stat-card strong {
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.quick-actions a,
.branch-actions a,
.profile-actions a,
.profile-actions button,
.archive-card a,
.media-card a,
.video-card a {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  #content {
    padding: 14px 10px 30px;
  }

  .header-top {
    height: clamp(104px, 30vw, 142px);
  }

  .header-top h1 {
    left: 12px;
    right: 12px;
    bottom: 10px;
    font-size: clamp(20px, 7vw, 30px);
  }

  .header-search {
    padding: 8px 10px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 8px;
    padding: 9px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .main-nav a {
    flex: 0 0 auto;
    min-width: auto;
    scroll-snap-align: start;
  }

  .hero-panel {
    min-height: 0;
    padding: 20px 16px;
  }

  .hero-panel h2 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .hero-panel p {
    font-size: 15px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-actions a {
    text-align: center;
  }

  .blockheader {
    font-size: 17px;
  }

  .blockcontent {
    padding: 12px;
  }

  .archive-card {
    min-height: 0;
  }

  .pager {
    align-items: stretch;
    flex-direction: column;
  }

  .pager button {
    width: 100%;
  }

  .promo-copy {
    width: min(72%, 320px);
    padding: 10px 12px;
  }

  .promo-copy b {
    font-size: clamp(19px, 7vw, 28px);
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 12px;
  }

  .main-nav a {
    padding: 9px 11px;
    font-size: 12px;
  }

  .site-banner-rotator {
    width: calc(100% - 20px);
  }

  footer {
    padding: 14px 12px 18px;
  }
}



.lineage-highlights {
  margin-top: 18px;
}

.lineage-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.lineage-highlight-item {
  border: 1px solid rgba(123, 236, 229, 0.18);
  border-radius: 8px;
  background: rgba(123, 236, 229, 0.04);
  padding: 12px;
}

.lineage-highlight-item span,
.lineage-highlight-item small {
  display: block;
}

.lineage-highlight-item span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.lineage-highlight-item a,
.lineage-highlight-item strong {
  display: block;
  font-size: 16px;
  color: var(--orange-bright);
}

.lineage-highlight-item small {
  margin-top: 6px;
  color: #cbd2d9;
  line-height: 1.45;
}

.lineage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.lineage-links a {
  color: var(--orange-bright);
}


.promo-localdealatlas::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.22) 58%, rgba(0,0,0,.36)),
    radial-gradient(circle at 76% 38%, rgba(15,118,98,.28), transparent 14rem);
}


/* === House-matched overrides (2026-09-29) === */
.block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  backdrop-filter: none;
}
.blockheader {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font: 11px system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
}
.kicker {
  color: var(--gold);
  font: 10px system-ui, sans-serif;
  letter-spacing: .18em;
  font-weight: 500;
}
.hero-panel h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  text-shadow: none;
  color: var(--text);
  max-width: 18ch;
}
.quick-actions a,
.media-card a,
.video-card a,
.profile-actions button,
.profile-actions a,
.icon-links a,
.tag-cloud a {
  border: 1px solid var(--line) !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: var(--muted) !important;
  font: 11px system-ui, sans-serif !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quick-actions a:hover,
.media-card a:hover,
.video-card a:hover,
.profile-actions button:hover,
.profile-actions a:hover,
.icon-links a:hover,
.tag-cloud a:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: rgba(213,173,107,.08) !important;
  transform: none !important;
}
.stat-card {
  border: 1px solid var(--line);
  background: #12110e;
  border-radius: 2px;
}
.stat-card strong { color: var(--gold) !important; font-family: Georgia, serif; }
.stat-highlight {
  border-color: var(--line);
  background: rgba(213,173,107,.06);
}
.site-banner-rotator {
  max-width: 1220px;
  margin: 24px auto 8px;
  padding: 0 18px;
  opacity: .85;
}
.site-banner-rotator::before {
  content: "Related sites";
  display: block;
  margin: 0 0 10px;
  font: 10px system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.promo-slide {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #12110e;
}
footer {
  background: #0c0d0c;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 11px system-ui, sans-serif;
  letter-spacing: .06em;
  padding: 28px 5vw 40px;
  display: grid;
  gap: 8px;
  text-align: center;
}
footer a { color: var(--gold); }
.tree-chart, .place-list a, .compact-list a, .feature-card, .video-card, .media-card {
  border-color: var(--line) !important;
  background: #12110e !important;
  border-radius: 2px !important;
}
@media (max-width: 900px) {
  .header-top { flex-direction: column; align-items: flex-start; min-height: 0; padding: 14px 5vw; }
  .brand-lockup img { width: 52px; height: 52px; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .header-search { width: 100%; }
  .header-search input { flex: 1; min-width: 0; }
  .home-grid { grid-template-columns: 1fr; }
  .surname-directory { grid-template-columns: 1fr; }
}

.surname-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.surname-tile {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  text-decoration: none;
}

.surname-tile strong {
  font-family: Georgia, serif;
  font-weight: 500;
  color: var(--gold);
}

.surname-tile span,
.surname-tile small {
  color: var(--muted);
  font-size: 13px;
}

.surname-index-tools {
  margin-bottom: 14px;
}

.surname-letter-group {
  margin: 0 0 16px;
}

.surname-letter-group h3 {
  margin: 0 0 8px;
  font: 12px system-ui, sans-serif;
  letter-spacing: .14em;
  color: var(--gold);
}

.surname-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.surname-links a {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 2px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  text-decoration: none;
}

.surname-links a.is-lineage {
  border-color: var(--line);
  color: var(--gold);
}

.record-highlights {
  display: grid;
  gap: 12px;
}

.record-highlights article {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.record-highlights span {
  font: 11px system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

.record-highlights a {
  color: var(--text);
}

.record-highlights small {
  color: var(--muted);
}

.surname-note {
  color: var(--muted);
}
}
@media (prefers-reduced-motion: reduce) {
  .active-view { animation: none; }
}


/* === Hero portrait carousel === */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-carousel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0a0908;
  overflow: hidden;
}
.hero-house-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: clamp(52px, 8vw, 72px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.65));
  pointer-events: none;
  opacity: .94;
}
.hero-slides {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #080706;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(0.92) contrast(1.04);
}
.hero-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, #0a0908f0 70%);
  color: var(--muted);
  font: 10px/1.4 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #0e0d0b;
}
.hero-carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  font: 22px/1 Georgia, serif;
  cursor: pointer;
}
.hero-carousel-btn:hover {
  border-color: var(--gold);
  background: rgba(213,173,107,.08);
}
.hero-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.hero-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.hero-carousel-dots button.is-active,
.hero-carousel-dots button[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
}
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-slides { aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Family History agent (landing-page RAG chat) */
.family-agent-block .family-agent-lede {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 52rem;
}
.family-agent-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(28, 26, 20, .96), rgba(18, 17, 14, .94));
  padding: 16px;
}
.family-agent-memory {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184, 138, 68, .28);
}
.family-agent-memory[hidden] {
  display: none;
}
.family-agent-topic {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 13px;
  color: var(--cream);
}
.family-agent-topic strong {
  color: var(--gold);
  font-weight: 600;
}
.family-agent-end {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}
.family-agent-end:hover,
.family-agent-end:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}
.family-agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.family-agent-actions button {
  appearance: none;
  border: 1px solid var(--gold);
  background: rgba(213, 173, 107, .12);
  color: var(--gold);
  font: inherit;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
}
.family-agent-actions button:hover,
.family-agent-actions button:focus-visible {
  background: rgba(213, 173, 107, .22);
  outline: none;
}
.family-agent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.family-agent-suggestions button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(213, 173, 107, .06);
  color: var(--cream);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  padding: 8px 11px;
  cursor: pointer;
}
.family-agent-suggestions button:hover,
.family-agent-suggestions button:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}
.family-agent-suggestions button:disabled {
  opacity: .55;
  cursor: wait;
}
.family-agent-log {
  min-height: 180px;
  max-height: min(42vh, 360px);
  overflow: auto;
  border: 1px solid rgba(184, 138, 68, .28);
  background: rgba(8, 9, 8, .55);
  padding: 12px;
  margin-bottom: 12px;
}
.family-agent-welcome,
.family-agent-message {
  margin: 0 0 12px;
}
.family-agent-welcome {
  color: var(--muted);
  font-style: italic;
}
.family-agent-message p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.family-agent-message.is-user p {
  color: var(--cream);
}
.family-agent-message.is-assistant p {
  color: var(--text);
}
.family-agent-message .agent-role {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.family-agent-sources {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(184, 138, 68, .22);
}
.family-agent-sources summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 13px;
}
.family-agent-sources a {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}
.family-agent-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.family-agent-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(10, 11, 10, .7);
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}
.family-agent-form input:focus-visible {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}
.family-agent-form button {
  appearance: none;
  border: 1px solid var(--gold);
  background: rgba(213, 173, 107, .14);
  color: var(--gold);
  font: inherit;
  padding: 0 16px;
  cursor: pointer;
  min-width: 4.5rem;
}
.family-agent-form button:disabled {
  opacity: .55;
  cursor: wait;
}
.family-agent-meta {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.family-agent-catalog {
  margin-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--line, #c9b99a) 70%, transparent);
  padding-top: 10px;
}
.family-agent-catalog summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink, #2c2416);
}
.family-agent-catalog-note {
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.family-agent-catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}
.family-agent-catalog-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  font-size: 13px;
}
.family-agent-catalog-list a {
  color: var(--link, #5a3d1b);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.family-agent-catalog-cat {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 700px) {
  .family-agent-form {
    grid-template-columns: 1fr;
  }
  .family-agent-form button {
    min-height: 44px;
  }
}

