/* Ezeani Heritage — theme matching the approved design (Fraunces + Inter, warm off-white) */
:root {
  --bg: #F5F4F1;
  --paper: #FFFFFF;
  --bar: #FBFAF7;
  --ink: #2B2118;
  --muted: #6E6253;
  --line: #E6DDCD;
  --line-2: #EFE7D9;
  --sand: #F4ECDD;
  --dark: #2B2118;
  --gold: #E2C17C;
  --gold-ink: #8A6424;
  --green: #4F7A63;
  --green-dark: #3F6651;
  --male: #4A7FA8;
  --female: #A9566F;
  --unknown: #8B8178;
  --danger: #A33B2B;
  --r: 20px;
  --serif: Fraunces, "Iowan Old Style", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-ink); }
p a, .small a, .muted a, li a, dd a, .link { color: var(--gold-ink); }
h1, h2, h3, h4, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 40px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 22px; }
h4, .h4 { font-size: 20px; }
p { margin: 0 0 .9em; }
code { background: var(--sand); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
img { max-width: 100%; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 520px; margin: 0 auto; }
.narrow-form { max-width: 760px; }
main.wrap { padding-top: 32px; padding-bottom: 56px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
.ic { vertical-align: -3px; flex: none; }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .2em; font-weight: 600; color: var(--gold-ink); text-transform: uppercase; }
.eyebrow.gold { color: var(--gold); }
.eyebrow.mint, .eyebrow.light { color: #CFE3D6; }
:focus-visible { outline: 3px solid #C9A24E; outline-offset: 2px; }

/* ---- Top bar ---- */
.topbar { background: var(--bar); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.brand-mark svg, .logo-mark, .logo-seal { display: block; }
.brand-name { font: 600 21px var(--serif); white-space: nowrap; }
.mainnav { display: flex; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; }
.mainnav a { padding: 9px 14px; border-radius: 8px; font-size: 15px; }
.mainnav a:hover { background: #F1EBDF; color: var(--ink); }
.mainnav a.active { background: #EFE4CF; color: #7A5519; font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.icon-btn .dot { position: absolute; top: -3px; right: -4px; background: #B8742E; color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 6px; }
.me { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 500; }
.me-av { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.signout, .signin { font-size: 15px; color: var(--muted); }
.signin { color: var(--ink); font-weight: 500; padding: 8px 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---- Buttons & forms ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font: 500 15px var(--sans); cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { filter: brightness(1.07); color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; margin-top: 14px; }
.btn-dark { background: var(--dark); color: #F7F3EC; }
.btn-dark:hover { color: #fff; }
.btn-white { background: var(--paper); color: var(--ink); border: 1px solid #D8CBB4; }
.btn-white:hover { color: var(--ink); background: #FBF8F3; }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-ghost:hover { color: var(--green-dark); }
.btn-green { background: var(--green); }
.btn-gold { background: var(--gold); color: var(--dark); font-weight: 600; }
.btn-gold:hover { color: var(--dark); }
.btn-light { background: #F4F1E8; color: #2E4A3B; font-weight: 600; }
.btn-light:hover { color: #2E4A3B; }
.btn-outline-light { background: transparent; color: #F7F3EC; border: 1px solid #6B5A47; }
.btn-outline-mint { background: transparent; color: #F4F1E8; border: 1px solid #A9C6B4; }
.btn-danger { background: var(--danger); }
.btn-danger-ghost { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px #E2B7AE; }
.btn-danger-ghost:hover { color: var(--danger); background: #FCF1EE; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid #D8CBB4; border-radius: 999px; font-size: 14px; background: var(--paper); white-space: nowrap; }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-ink); cursor: pointer; font: inherit; }
.linklike.danger, .danger { color: var(--danger); }
form.inline { display: inline; }
.form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: .9rem; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
input, select, textarea { font: inherit; color: inherit; }
.form input:not([type=checkbox]):not([type=file]):not([type=radio]), .form select, .form textarea,
.review-actions input, .review-actions select, .inline-form select, .inline-form input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1.5px solid #DCD2C0; border-radius: 12px; background: #FDFCFA; font-weight: 400;
}
.form input[type=file] { display: block; margin-top: 8px; font-weight: 400; font-size: .9rem; }
.inline-form select, .inline-form input, .review-actions input, .review-actions select { display: inline-block; width: auto; margin: 0 4px 4px 0; padding: 7px 10px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(79,122,99,.16); }
.form textarea { resize: vertical; line-height: 1.55; }
.form select[multiple] { padding: 6px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 8px; padding: 16px 0 0; }
legend { font: 600 1.15rem var(--serif); padding-right: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.form.compact label { margin-bottom: 8px; }
.form.compact { margin: 10px 0; }

/* ---- Cards & layout ---- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin-bottom: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .small { color: var(--gold-ink); }
.card.empty { text-align: center; padding: 40px 26px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 + section { margin-top: 24px; }
.page-head { margin-bottom: 26px; }
.page-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--gold-ink); }
.crumbs span { margin: 0 6px; color: #B8AC9A; }
.flash { padding: 13px 18px; border-radius: 14px; margin-bottom: 18px; border: 1px solid; }
.flash-ok { background: #E8F2EC; border-color: #BCD9C6; color: #1F5135; }
.flash-warn { background: #FDF3E1; border-color: #F0D6A6; color: #6D4A12; }
.flash-error { background: #FBEAE6; border-color: #F0C2B9; color: #7A2617; }
.flash-info { background: #EEF3F7; border-color: #C9D8E5; color: #23445F; }
.tag { display: inline-block; background: var(--sand); color: var(--muted); border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 600; }
.tag-living { background: #E2EFE8; color: var(--green-dark); }
.tag-pending { background: #FDF0D8; color: #7A5212; }
ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
ul.plain li:last-child { border-bottom: 0; }
.rel { display: inline-block; width: 64px; color: var(--muted); font-size: .85rem; }
.checks { list-style: none; padding: 0; }
.checks .ok { color: #1F5135; } .checks .bad { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chips-label { margin-right: 4px; }
.chip { background: var(--sand); color: var(--ink); padding: 6px 14px; border-radius: 999px; font-size: .88rem; }
.chip span { color: var(--muted); font-size: .78rem; margin-left: 2px; }
.chip:hover { background: #EADFC9; color: var(--ink); }
.chip.on { background: var(--dark); color: #F7F3EC; }
.chip.on span { color: #CDBFA9; }
.seg { display: inline-flex; background: #ECE5D7; border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: 500 .9rem var(--sans); color: var(--muted); cursor: pointer; }
.seg a.on, .seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(43,33,24,.12); }
.filters { margin-bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table th { background: #F7F2E8; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
.pager a { padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.pager a.active { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ---- Avatars ---- */
.av { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 600; flex: none; background: var(--unknown); }
.av.g-M { background: var(--male); } .av.g-F { background: var(--female); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Landing ---- */
.hero-row { display: flex; flex-wrap: wrap; gap: 24px; }
.hero-dark { flex: 999 1 560px; min-width: 0; background: var(--dark); color: #F7F3EC; border-radius: 24px; padding: 56px 48px; display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; }
.hero-dark::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(226,193,124,.16); }
.hero-dark h1 { margin: 0; font-size: 52px; line-height: 1.08; color: #F7F3EC; }
.hero-dark h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-dark .lead { margin: 0; font-size: 18px; line-height: 1.6; color: #D9CFC0; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 12px; padding-top: 24px; border-top: 1px solid #4A3B2D; }
.hero-stats strong { display: block; font: 600 34px var(--serif); }
.hero-stats span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #B9AB98; }
.tree-card { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; border-radius: 24px; }
.mini-tree { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0; }
.mt-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.mt-node strong { font: 600 14px var(--sans); margin-top: 6px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-node > span:last-child { font-size: 12px; color: var(--muted); }
.mt-root .av { border: 3px solid var(--gold); background: #8A6424; font-family: var(--serif); }
.mt-stem { width: 2px; height: 18px; background: #D8CBB4; }
.mt-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); width: 100%; border-top: 2px solid #D8CBB4; }
.mt-row .mt-node strong { font-size: 13px; max-width: 150px; }
.mt-drop { width: 2px; height: 16px; background: #D8CBB4; }
.mt-row { position: relative; border-top: 0; }
.mt-row::before { content: ""; position: absolute; top: 0; height: 2px; background: #D8CBB4; left: calc(50% / var(--n)); right: calc(50% / var(--n)); }
.mt-row.single::before { display: none; }
.tiles.mosaic.flat { grid-auto-rows: 260px; }
.empty-mini { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #B8AC9A; padding: 40px 0; text-align: center; }
.section { margin-top: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; }
.rule-title { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; font: 600 12px var(--sans); letter-spacing: .24em; color: #7A6A55; text-transform: uppercase; }
.rule-title::before, .rule-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.decades { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.decade { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; }
.decade strong { display: block; font: 600 26px var(--serif); }
.decade span { font-size: 13px; color: var(--muted); }
.decade:hover { border-color: #CDB98F; color: var(--ink); }
.events-row { display: flex; flex-wrap: wrap; gap: 24px; }
.reunion { flex: 1 1 520px; min-width: 0; background: var(--green); color: #F4F1E8; border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.reunion h2 { margin: 0; font-size: 38px; color: #F4F1E8; }
.reunion h2 a { color: inherit; }
.reunion-when { margin: 0; font-size: 17px; color: #E3EDE6; }
.counters { display: flex; gap: 12px; flex-wrap: wrap; }
.counters > div { background: var(--green-dark); border-radius: 12px; padding: 12px 18px; text-align: center; min-width: 84px; }
.counters strong { display: block; font: 600 28px var(--serif); }
.counters span { font-size: 12px; color: #CFE3D6; }
.coming { flex: 1 1 380px; min-width: 0; margin: 0; border-radius: 24px; padding: 32px; }
.coming-row { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.coming-row:last-child { border-bottom: 0; }
.coming-row > span:last-child { display: flex; flex-direction: column; }
.datebox { width: 62px; flex: none; text-align: center; background: var(--sand); border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; line-height: 1.15; }
.datebox span { font-size: 11px; color: var(--gold-ink); font-weight: 600; letter-spacing: .06em; }
.datebox strong { font: 600 24px var(--serif); }
.datebox.sm { width: 54px; padding: 6px 0; }
.datebox.sm strong { font-size: 22px; }
.find { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; padding: 40px; border-radius: 24px; }
.find-text { flex: 1 1 340px; }
.find-text h2 { margin: 0; }
.find-text p { margin: 8px 0 0; }
.find-form { flex: 1 1 460px; display: flex; gap: 10px; flex-wrap: wrap; }
.find-form input { flex: 1 1 260px; padding: 15px 20px; border: 1.5px solid #D8CBB4; border-radius: 999px; font-size: 16px; background: #FBF8F3; }
.find-branches { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.motto { text-align: center; padding: 56px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.motto-text { margin: 0 auto; font: italic 500 30px/1.4 var(--serif); max-width: 820px; }
.motto-by { margin: 16px 0 0; font-size: 14px; letter-spacing: .16em; color: #7A6A55; }

/* ---- Archive tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tiles.four { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tiles.mosaic { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-rows: 183px; }
.tiles.mosaic .big { grid-row: span 2; }
.tile { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #D9CBB3; color: #F7F3EC; }
.tiles.mosaic .tile { aspect-ratio: auto; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tile:hover img { transform: scale(1.03); }
.tile-video, .tile-document { background: #3B3027; }
.tile-document { background: #E4D9C5; color: var(--gold-ink); }
.tile-icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.tile-youtube .tile-icon { color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.tile-document .tile-icon { color: var(--gold-ink); }
.tile-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(43,33,24,.8); color: #F7F3EC; padding: 6px 10px; border-radius: 8px; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropzone { margin-top: 16px; border: 1.5px dashed #D8CBB4; border-radius: 16px; padding: 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #FBF8F3; color: var(--gold-ink); }
.dropzone label { margin: 0; color: var(--ink); flex: 1 1 260px; }
.dropzone.link > span:nth-child(2) { flex: 1 1 260px; display: flex; flex-direction: column; color: var(--ink); }
.dropzone.link:hover { border-color: #C9A96B; background: #F8F2E6; }
.chips-mini { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-mini span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.upload-panel { margin-top: 32px; }
.media-view { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.media-stage { flex: 999 1 600px; min-width: 0; background: #201812; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; min-height: 360px; }
.media-stage img, .media-stage video { max-width: 100%; max-height: 78vh; display: block; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--gold); padding: 60px 20px; }
.media-info { flex: 1 1 320px; min-width: 0; margin: 0; }
.media-info h1 { font-size: 28px; }
.label { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.people-list { list-style: none; margin: 0 0 16px; padding: 0; }
.people-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; }

/* ---- Events ---- */
.feature-event { background: var(--green); color: #F4F1E8; border-radius: 24px; padding: 40px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.feature-event h1, .feature-event h2 { margin: 0; font-size: 38px; color: #F4F1E8; }
.feature-event h2 a { color: inherit; }
.feature-event p { margin: 0; color: #E3EDE6; font-size: 17px; }
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-row { display: flex; gap: 18px; align-items: center; margin: 0; padding: 16px 20px; }
.event-row:hover { border-color: #CDB98F; color: var(--ink); }
.event-main { flex: 1; display: flex; flex-direction: column; }
.rsvp-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rsvp label { font-weight: 500; }
.rsvp input[type=number] { padding: 6px 8px; border: 1.5px solid #DCD2C0; border-radius: 8px; margin-left: 6px; }

/* ---- Dashboard ---- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-head h1 { margin: 0; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.dash-main { flex: 999 1 600px; min-width: 0; }
.dash-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dash-side .card { margin: 0; }
.review-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.rr-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #E4EEE7; color: #2E4A3B; }
.rr-photos { background: #F4E6D3; color: #7A4A17; }
.rr-events { background: #EAE5F1; color: #4F3F6B; }
.rr-users { background: #E6EEF4; color: #2D4C66; }
.rr-text { flex: 1 1 240px; display: flex; flex-direction: column; min-width: 0; }
.rr-actions { display: flex; gap: 8px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 12px 0; border-top: 1px solid var(--line-2); display: flex; gap: 12px; }
.activity a { color: var(--gold-ink); }
.adot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: none; }
.reunion.compact { flex: none; padding: 26px; gap: 10px; border-radius: var(--r); }
.reunion.compact h2 { font-size: 26px; }
.mint-text { color: #CFE3D6; margin: 6px 0 0; }
.rsvp-mini { display: flex; gap: 8px; }
.rsvp-mini button { flex: 1; padding: 11px; border: 1px solid #A9C6B4; border-radius: 999px; background: transparent; color: #F4F1E8; font: inherit; cursor: pointer; }
.rsvp-mini button.on, .rsvp-mini button:hover { background: #F4F1E8; color: #2E4A3B; font-weight: 600; border-color: #F4F1E8; }
.bday { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.bday:last-child { border-bottom: 0; }
.bday > span:nth-child(2) { flex: 1; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.mini-stats div { background: var(--bg); border-radius: 12px; padding: 14px; }
.mini-stats strong { display: block; font: 600 24px var(--serif); }
.mini-stats span { font-size: 13px; color: var(--muted); }

/* ---- Directory ---- */
.dir-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.dir-input { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border: 1.5px solid #D8CBB4; border-radius: 999px; background: var(--paper); color: var(--muted); }
.dir-input input { flex: 1; border: 0; padding: 14px 0; background: transparent; outline: none; font-size: 16px; color: var(--ink); }
.dir-search select { padding: 13px 16px; border: 1.5px solid #D8CBB4; border-radius: 999px; background: var(--paper); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.person-card { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.person-card:hover { border-color: #CDB98F; color: var(--ink); box-shadow: 0 4px 16px rgba(43,33,24,.06); }
.pc-text { display: flex; flex-direction: column; min-width: 0; }
.pc-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Profile ---- */
.person-head { display: flex; gap: 26px; align-items: center; margin-bottom: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.avatar { flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--unknown); color: #fff; font-family: var(--serif); }
.avatar-lg { width: 128px; height: 128px; font-size: 2.6rem; border: 4px solid var(--sand); }
.avatar a { display: block; width: 100%; height: 100%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.g-M { background: var(--male); } .avatar.g-F { background: var(--female); }
.person-title h1 { margin-bottom: .1em; }
.lifespan { font-size: 1.1rem; color: var(--muted); margin-bottom: 12px; }
.person-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0 0 18px; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; }
.family-group { border-left: 3px solid var(--sand); padding: 4px 0 4px 16px; margin-bottom: 16px; }
.family-group .partner { font-weight: 600; }
.kids { margin: 6px 0; padding-left: 22px; }
.kids li { padding: 2px 0; }
.add-links { border-top: 1px solid var(--line); padding-top: 12px; font-size: .92rem; line-height: 2; }
.add-links a, .family-group .small a { color: var(--gold-ink); }
.inline-details { display: inline; }
.inline-details[open], .add-links .inline-details { display: block; }
.inline-details[open] { background: var(--bg); border-radius: 12px; padding: 8px 14px 12px; margin-top: 6px; }
.inline-details summary { cursor: pointer; color: var(--gold-ink); display: inline; }
.add-media { margin-top: 18px; }
.add-media summary { list-style: none; cursor: pointer; }
.add-media summary::-webkit-details-marker { display: none; }
.add-media[open] form { margin-top: 16px; background: var(--bg); border-radius: 16px; padding: 18px; }
.bio p { max-width: 72ch; }
.notice { background: #FDF6E8; }
.admin-zone { border-color: #ECC9BF; background: #FFF9F6; }
.admin-zone form { margin-right: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.gallery figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gallery figure .tile { border-radius: 0; }
.gallery figcaption { padding: 10px 12px; font-size: .85rem; }
.gallery figcaption form { margin-top: 8px; display: flex; gap: 6px; }

/* ---- Admin ---- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; border-radius: 10px 10px 0 0; color: var(--muted); font-weight: 600; }
.tabs a.active { background: var(--paper); color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); }
.review-head { margin-bottom: 10px; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.review-actions input[name=note] { flex: 1; min-width: 200px; }
.diff { border-collapse: collapse; width: 100%; font-size: .92rem; }
.diff th, .diff td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.diff th { background: #F7F2E8; }
.diff .old { color: #8A3A2C; background: #FDF1EE; }
.diff .new { color: #1F5135; background: #EEF7F1; }
.status { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: #eee; margin-right: 4px; }
.status-pending { background: #FDF0D8; color: #7A5212; }
.status-approved, .status-auto { background: #E2EFE8; color: #1F5135; }
.status-rejected { background: #FBE4DF; color: #7A2617; }

/* ---- Tree ---- */
.tree { position: relative; background: var(--paper) radial-gradient(circle, #E7DFCF 1px, transparent 1.2px) 0 0 / 22px 22px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; touch-action: none; }
.tree-preview { height: 420px; touch-action: pan-y; }
.tree-full { height: calc(100vh - 200px); min-height: 460px; }
.tree.loading::after { content: "Loading…"; position: absolute; top: 12px; right: 14px; color: var(--muted); font-size: .85rem; }
.tree-svg { width: 100%; height: 100%; display: block; cursor: grab; }
.tree-svg:active { cursor: grabbing; }
.tree .links path { fill: none; stroke: #CDBFA6; stroke-width: 1.6; }
.tree .node { cursor: pointer; }
.tree .node .card { fill: #fff; stroke: #DED3C0; stroke-width: 1.2; filter: drop-shadow(0 2px 4px rgba(43,33,24,.07)); }
.tree .node:hover .card { stroke: var(--green); }
.tree .node.root .card { stroke: var(--gold); stroke-width: 2.6; }
.tree .node .stripe { fill: var(--unknown); }
.tree .node.g-M .stripe, .tree .node.g-M .initial-bg { fill: var(--male); }
.tree .node.g-F .stripe, .tree .node.g-F .initial-bg { fill: var(--female); }
.tree .node.g-U .initial-bg { fill: var(--unknown); }
.tree .initial { fill: #fff; font: 600 18px var(--serif); pointer-events: none; }
.tree .nm { font: 600 13.5px var(--sans); fill: var(--ink); }
.tree .yr { font: 12px var(--sans); fill: var(--muted); }
.tree .sp { font: 11.5px var(--sans); fill: #9A6A2E; }
.tree .more { font: 600 11px var(--sans); fill: var(--green); }
.tree .info circle { fill: var(--sand); }
.tree .info text { font: italic 700 12px Georgia, serif; fill: var(--gold-ink); }
.tree .info:hover circle { fill: var(--green); }
.tree .info:hover text { fill: #fff; }
.tree-msg { fill: var(--muted); font: 14px var(--sans); }
.page-tree main.wrap { max-width: 100%; padding-top: 18px; padding-bottom: 12px; }
.tree-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tree-toolbar select { padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; margin-left: 4px; }
.jump input { padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; width: 240px; background: #fff; }
.tree-title { font: 600 1.2rem var(--serif); margin-left: auto; }
.tree-title a { color: var(--gold-ink); }
.tree-help { margin: 8px 0 0; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); background: var(--bar); }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 32px 34px; font-size: 14px; color: var(--muted); }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .mainnav, .nav-right { display: none; width: 100%; }
  .nav-open .mainnav { display: flex; flex-direction: column; }
  .nav-open .nav-right { display: flex; flex-wrap: wrap; padding-bottom: 14px; }
  .topbar-inner { gap: 12px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  h1 { font-size: 32px; }
  .hero-dark { padding: 36px 26px; }
  .hero-dark h1 { font-size: 38px; }
  .hero-stats { gap: 22px; }
  .reunion, .feature-event, .find { padding: 28px 22px; }
  .reunion h2, .feature-event h1, .feature-event h2 { font-size: 30px; }
  .grid2, .row3 { grid-template-columns: 1fr; }
  .person-head { flex-direction: column; text-align: center; padding: 24px 18px; }
  .person-actions { justify-content: center; }
  .tiles.mosaic { grid-auto-rows: 160px; }
  .tiles.mosaic .big { grid-row: span 1; }
  .tree-title { margin-left: 0; width: 100%; }
  .jump input { width: 100%; }
  .tree-full { height: calc(100vh - 270px); }
  .motto-text { font-size: 24px; }
  .table { display: block; overflow-x: auto; }
}

/* ---- Date picker (Day / Month / Year) & form helpers ---- */
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.date3 { display: grid; grid-template-columns: 74px minmax(0, 1fr) 84px; gap: 6px; }
.date3 select, .date3 input { width: 100%; margin: 0 !important; padding: 11px 10px !important; border: 1.5px solid #DCD2C0; border-radius: 12px; background: #FDFCFA; }
.date3 select:focus, .date3 input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(79,122,99,.16); }
.form.compact .date3 select, .form.compact .date3 input { padding: 8px 8px !important; }
.parents-optional { margin: 8px 0 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.parents-optional summary { cursor: pointer; font: 600 1.15rem var(--serif); }
.parents-optional[open] summary { margin-bottom: 8px; }
select.autofilled { border-color: var(--green) !important; background: #F1F7F3 !important; }
.merge { margin: 0 0 14px; }
.merge .form { max-width: 560px; }

/* ---- Relationship labels & census ---- */
.role { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); background: var(--sand); border-radius: 6px; padding: 1px 7px; margin-right: 4px; vertical-align: 1px; }
.tree .yr.rel { font-weight: 600; fill: #9A6A2E; font-size: 11.5px; }
.c-m { color: var(--male); }
.c-f { color: var(--female); }
.census { padding: 28px; }
.census-totals { display: flex; flex-wrap: wrap; gap: 28px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.census-totals strong { display: block; font: 600 30px var(--serif); line-height: 1.1; }
.census-totals span { font-size: 13px; color: var(--muted); }
.census-totals.big { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; border: 0; padding: 0; margin-bottom: 24px; }
.census-totals.big .card { margin: 0; padding: 20px; }
.census-totals.big strong { font-size: 34px; }
.census-gens { display: flex; flex-direction: column; gap: 12px; }
.cg-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 16px; align-items: center; }
.cg-label { font-weight: 600; font-size: 14px; }
.cg-bar { display: flex; height: 14px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.cg-bar span { display: block; height: 100%; }
.b-m { background: var(--male); }
.b-f { background: var(--female); }
.b-u { background: #C9BFB2; }
.cg-nums { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
.census-table td, .census-table th { text-align: right; }
.census-table td:first-child, .census-table th:first-child { text-align: left; }
.census-table tr.total td { font-weight: 700; background: #FBF8F3; }
.table-wrap { overflow-x: auto; }
.mini-stats strong.c-m { color: var(--male); }
.mini-stats strong.c-f { color: var(--female); }
@media (max-width: 720px) {
  .cg-row { grid-template-columns: 1fr auto; }
  .cg-bar { grid-column: 1 / -1; order: 3; }
}
.known-as { font-size: 1.05rem; margin: -2px 0 6px; color: var(--muted); }
.known-as strong { color: var(--gold-ink); font-weight: 600; }
.nick { font-weight: 500; color: var(--gold-ink); }
.nick-check { padding-top: 30px; }
@media (max-width: 720px) { .nick-check { padding-top: 0; } }

/* ---- Family view on profiles ---- */
.family-view .card-head { flex-wrap: wrap; }
.tree-family { height: 440px; touch-action: pan-y; }
.tree .node.root .card { stroke: var(--green); stroke-width: 2.8; }
.rel-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px 28px; }
.rel-group .label { margin: 0 0 8px; }
.rel-items { display: flex; flex-direction: column; gap: 4px; }
.rel-item { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; }
.rel-item:hover { background: var(--bg); color: var(--ink); }
.rel-item > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rel-item strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-link { margin: 14px 0 0; }
.add-relatives h3 { margin-bottom: 14px; }
.add-relatives .grid2 > div { min-width: 0; }
.add-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.link-form { margin: 0; }
.picker { appearance: none; -webkit-appearance: none; }
/* ---- Relationship finder ---- */
.finder-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.finder-row label { flex: 1 1 280px; margin: 0; }
.finder-and { font: italic 500 28px var(--serif); color: var(--gold-ink); padding-bottom: 6px; }
.relation-sentence { font: 500 26px/1.35 var(--serif); margin-bottom: 6px; }
.rel-word { color: var(--gold-ink); font-style: italic; }
.chain { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; }
.chain-person a { display: flex; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.chain-person.end a { border-color: var(--gold); background: #FBF6EA; }
.chain-person a { color: var(--ink); }
.chain-person a > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.chain-edge { padding: 4px 0 4px 26px; border-left: 2px dashed #D8CBB4; margin-left: 27px; }
.chain-edge span { font-size: 13px; color: var(--muted); font-style: italic; }

/* ---- Profile ownership, contacts, photo picker ---- */
.me-badge { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.me-claim { margin-top: 8px; }
.me-claim .linklike { font-weight: 600; }
.contacts { list-style: none; margin: 0 0 18px; padding: 0; }
.contacts li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.contacts li:last-child { border-bottom: 0; }
.contacts .c-label { width: 92px; color: var(--muted); font-size: .85rem; flex: none; }
.contacts a { color: var(--gold-ink); word-break: break-all; }
.photo-pick { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.photo-pick label { margin: 0; flex: 1 1 260px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; max-width: 720px; }
.contact-row { display: grid !important; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0 0 6px !important; }
.contact-row span { font-weight: 600; font-size: .9rem; }
.contact-row input { margin-top: 0 !important; }
.pub-check { padding: 0 !important; margin: 0 0 6px !important; font-size: .88rem; white-space: nowrap; }
.rr-claims { background: #F1EAF6; color: #5A3D73; }
@media (max-width: 720px) { .contact-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---- Tree: list (outline) view ---- */
.tree.as-list { background: var(--paper); overflow: auto; touch-action: auto; }
.tree-outline { padding: 18px 22px; }
.tree-outline ul { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line-2); }
.tree-outline .outline-root { padding: 0; border: 0; }
.tree-outline li { margin: 2px 0; }
.tree-outline summary { list-style: none; cursor: pointer; }
.tree-outline summary::-webkit-details-marker { display: none; }
.ol-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; border-radius: 12px; position: relative; }
.ol-row:hover { background: var(--bg); }
details > summary.ol-row::before { content: "▸"; color: var(--gold-ink); width: 12px; margin-left: -4px; transition: transform .15s; }
details[open] > summary.ol-row::before { transform: rotate(90deg); }
div.ol-row { padding-left: 30px; }
.ol-focus > .ol-row, .ol-focus > details > .ol-row { background: #F1F7F3; }
.ol-name { font-weight: 600; color: var(--ink); }
.ol-rel { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); background: var(--sand); border-radius: 6px; padding: 1px 7px; }
.ol-years, .ol-sp { font-size: .85rem; color: var(--muted); }
.ol-sp { color: #9A6A2E; }
.ol-more { font-size: .8rem; color: var(--green); font-weight: 600; }
.ol-centre { margin-left: auto; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; font: 500 12px var(--sans); padding: 3px 10px; color: var(--muted); cursor: pointer; opacity: 0; }
.ol-row:hover .ol-centre, .ol-centre:focus { opacity: 1; }
@media (hover: none) { .ol-centre { opacity: 1; } }
@media (max-width: 720px) {
  .tree-outline { padding: 12px 8px; }
  .tree-outline ul { padding-left: 14px; }
  .ol-centre { display: none; }
  .ol-row { gap: 6px 8px; padding: 6px; }
}

/* ---------- Network view: relatives in rings round one person ---------- */
.tree-toolbar.is-network .tree-only { display: none; }
.tree.as-network { height: calc(100vh - 250px); min-height: 520px; }
.net-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 10px; }
.net-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; flex: 1 1 420px; }
.net-who { flex: 1 1 260px; min-width: 0; }
.net-who b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.net-who small { color: var(--muted); font-size: .8rem; }
.net-acts { display: flex; gap: 8px; }
.net-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.net-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.net-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.net-tip { position: absolute; pointer-events: none; background: var(--dark); color: #fff; font-size: .8rem; padding: 5px 10px; border-radius: 8px; opacity: 0; white-space: nowrap; transition: opacity .12s; z-index: 2; }
.net-links line { stroke-width: 1.1; stroke-opacity: .38; }
.net-node { cursor: pointer; }
.net-node .net-c { fill: #fff; stroke: #DED3C0; stroke-width: 1.3; filter: drop-shadow(0 2px 3px rgba(43,33,24,.08)); transition: stroke .15s; }
.net-node:hover .net-c { stroke: var(--gold-ink); stroke-width: 2; }
.net-node text { text-anchor: middle; pointer-events: none; }
.net-nm { fill: var(--ink); font-size: 11.5px; font-weight: 600; }
.net-rl { font-size: 9.5px; font-weight: 500; }
.net-dot, .net-fdot { stroke: #fff; stroke-width: 2; }
.net-focus { cursor: pointer; }
.net-fc { fill: var(--dark); }
.net-ring { fill: none; stroke: var(--gold); stroke-width: 3.5; }
.net-fdot { fill: var(--green); }
.net-ini { fill: var(--gold); font-family: var(--serif); font-size: 22px; font-weight: 600; text-anchor: middle; }
.net-fn { fill: var(--ink); font-size: 13.5px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.net-fy { fill: var(--muted); font-size: 11px; text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.net-empty { fill: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  .tree.as-network { height: 72vh; min-height: 380px; }
  .net-legend { display: none; }
}

/* Home page mini network */
.mini-net { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; }
.mini-net svg { width: 100%; max-width: 440px; height: auto; display: block; overflow: visible; }
.mini-net line { stroke-width: 1.3; stroke-opacity: .4; }
.mini-net text { text-anchor: middle; pointer-events: none; }
.mn-c { fill: #fff; stroke: #DED3C0; stroke-width: 1.3; filter: drop-shadow(0 2px 3px rgba(43,33,24,.08)); transition: stroke .15s; }
.mn-node:hover .mn-c { stroke: var(--gold-ink); stroke-width: 2; }
.mn-nm { fill: var(--ink); font: 600 11.5px var(--sans); }
.mn-rl { font: 500 9.5px var(--sans); }
.mn-dot { stroke: #fff; stroke-width: 2; }
.mn-fc { fill: var(--dark); }
.mn-ring { fill: none; stroke: var(--gold); stroke-width: 3.5; }
.mn-ini { fill: var(--gold); font: 600 21px var(--serif); }
.mn-fn { fill: var(--ink); font: 700 13px var(--sans); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }

/* Footer and page taglines */
.foot-inner { align-items: flex-start; }
.foot-brand { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.foot-brand strong { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.foot-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
@media (max-width: 700px) { .foot-meta { text-align: left; } }
.page-tagline { margin: -6px 0 16px; font-size: .95rem; line-height: 1.55; }

/* Family terms (glossary) */
.gloss { display: flex; flex-direction: column; gap: 18px; }
.gloss-search { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 18px; max-width: 560px; color: var(--muted); }
.gloss-search input { border: 0; background: transparent; flex: 1; padding: 10px 0; font: inherit; outline: none; color: var(--ink); }
.gloss-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.gloss-sec { scroll-margin-top: 90px; }
.gloss-sec > h2 { margin: 6px 0 12px; }
.gloss-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gloss-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; scroll-margin-top: 90px; }
.gloss-item:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226,193,124,.35); }
.gloss-item dt { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.gloss-item dd { margin: 0; color: var(--ink); line-height: 1.55; font-size: .93rem; }
.gloss-eg, .gloss-aka { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.gloss-eg { font-style: italic; }
.table-wrap { overflow-x: auto; }
.gloss-chart { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .88rem; }
.gloss-chart th, .gloss-chart td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.gloss-chart thead th { background: var(--sand); font-weight: 600; }
.gloss-chart tbody th { background: var(--bar); font-weight: 600; white-space: nowrap; }
.gloss-chart td { background: var(--paper); }
.rel-help { margin: 0 0 12px; }

/* Family logo placements */
.hero-seal { line-height: 0; }
.hero-seal svg { width: 84px; height: 84px; }
@media (min-width: 1100px) {
  .hero-dark { padding-right: 230px; }
  .hero-seal { position: absolute; top: 48px; right: 48px; }
  .hero-seal svg { width: 160px; height: 160px; }
  .hero-dark::after { display: none; }
}
.page-seal { display: flex; justify-content: center; margin: 8px 0 14px; }
.foot-brand strong { display: inline-flex; align-items: center; gap: 10px; }
