/* Nha Roots — warm heritage design (v2: refined, modern).
   Paper + cream surfaces, olive bands, amber accents, Lora headings, Google Sans text.
   Every text/background pair meets WCAG 2.2 AA (4.5:1 for text, 3:1 for UI parts).
   Sizes are in rem so browser zoom and the in-app text-size setting scale everything. */

:root {
  --paper: #fbf8f2;          /* page */
  --surface: #ffffff;
  --cream: #f3ede1;          /* cards, panels */
  --sand: #e8dcc6;           /* borders, dividers */
  --ink: #2b2620;            /* 14.6:1 on paper */
  --muted: #5f584d;          /* 6.4:1 on paper, 6.0:1 on cream */
  --olive: #6f6b48;          /* bands; white text 5.4:1 */
  --olive-deep: #4f4c33;
  --olive-ink: #ffffff;
  --amber: #d58a2b;          /* buttons; dark text 5.7:1 */
  --amber-hover: #e39d42;
  --amber-ink: #2a2116;
  --amber-soft: #f7e3c4;
  --charcoal: #2f2c25;       /* dark card; white text 13:1 */
  --link: #7a4a12;           /* 6.7:1 on paper */
  --border: #8c8170;         /* inputs, 3.6:1 on white */
  --danger: #a3261b;
  --error-bg: #fbebe8;
  --success-bg: #ebf0dc;
  --info-bg: #f6edd9;
  --focus: #1d4e89;
  --focus-halo: #ffd98a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 8px 24px rgba(60, 40, 10, .06);
  --serif: "Lora", "Iowan Old Style", Georgia, serif;
  --sans: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* Text size preference (Settings) */
html { font-size: 106.25%; }               /* 17px */
html.text-large { font-size: 125%; }
html.text-xlarge { font-size: 143.75%; }

/* High contrast preference */
html.high-contrast {
  --paper: #ffffff; --surface: #ffffff; --cream: #ffffff; --sand: #000000; --ink: #000000; --muted: #000000;
  --olive: #000000; --olive-deep: #000000; --amber: #ffd23f; --amber-hover: #ffe27a; --amber-ink: #000000;
  --amber-soft: #ffffff; --charcoal: #000000; --link: #0000c8; --border: #000000; --shadow: none;
  --focus: #000000; --focus-halo: #ffff00; --success-bg: #ffffff; --error-bg: #ffffff; --info-bg: #ffffff;
}
html.high-contrast .panel, html.high-contrast .member-card, html.high-contrast .event-card,
html.high-contrast .person-card, html.high-contrast .tree-node, html.high-contrast .flash,
html.high-contrast .callout, html.high-contrast .feature, html.high-contrast .service { border: 2px solid #000; }
html.high-contrast .page-banner { background: #000; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
html.reduce-motion * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .h3, .display { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1 { font-size: 2.4rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.85rem; margin: 2rem 0 .75rem; }
h3, .h3 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code { background: var(--cream); padding: .1em .35em; border-radius: 4px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
thead th { background: var(--cream); font-weight: 650; }
blockquote { margin: 0 0 1rem; padding: .6rem 1rem; border-left: 4px solid var(--amber); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose { white-space: pre-line; }
.wrap { max-width: 76rem; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 36rem; }
.narrow--wide { max-width: 48rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 48rem; }
.meta, .dates, .hint, .small { color: var(--muted); font-size: .92rem; }
.nowrap { white-space: nowrap; }
.count { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); flex: none; }

/* ---------------------------------------------------------------- focus & a11y helpers */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); border-radius: 6px; }
main:focus { outline: none; }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--focus-halo); color: #000; padding: .75rem 1rem; font-weight: 700; z-index: 100; border: 3px solid #000; }
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------- top bar & header */
.topbar { background: var(--olive-deep); color: #fff; font-size: .85rem; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1rem; padding-block: .35rem; }
.topbar p { margin: 0; letter-spacing: .04em; }
.topbar__user { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; }
.topbar a { color: #fff; }
.topbar a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }
.topbar .link-button { color: #fff; min-height: 32px; }
.topbar :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #000; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--sand); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: .85rem; }
.brand { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; justify-self: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; }
.brand__tag { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.main-nav { grid-column: 1; grid-row: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .2rem; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .55rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 8px; }
.main-nav a:hover { text-decoration: underline; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 8px; font-weight: 650; }
.site-search { grid-column: 3; grid-row: 1; justify-self: end; display: flex; gap: .4rem; width: min(100%, 19rem); }
.site-search input { flex: 1; min-width: 0; min-height: 40px; border-radius: 999px; padding-inline: 1rem; }
.site-search .btn { border-radius: 999px; }
.nav-toggle { display: none; }
.badge { display: inline-block; min-width: 1.5em; margin-left: .35rem; padding: 0 .4em; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: .8rem; font-weight: 700; text-align: center; }
@media (max-width: 70rem) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; justify-self: start; }
  .main-nav { grid-column: 2; justify-self: end; }
  .site-search { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; }
  .js .nav-toggle { display: inline-flex; min-height: 44px; padding: .4rem 1rem; background: var(--cream); color: var(--ink); border: 1px solid var(--sand); border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
  .js .main-nav ul { position: absolute; left: 1rem; right: 1rem; margin-top: .5rem; flex-direction: column; background: var(--surface); border: 1px solid var(--sand); border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow); z-index: 50; }
  .main-nav { position: relative; }
}
@media (max-width: 70rem) and (min-width: 0) { .site-header { position: relative; } }

main { padding: 0 0 3rem; min-height: 60vh; }
.main-wrap { padding-top: 1.5rem; }

/* ---------------------------------------------------------------- footer (olive card) */
.site-footer { margin: 2rem 1.25rem 1.25rem; background: var(--olive); color: var(--olive-ink); border-radius: 24px; }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer__name { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 .75rem; }
.site-footer__brand p:not(.site-footer__name) { max-width: 26rem; }
.site-footer__heading { font-weight: 650; margin-bottom: .6rem; }
.site-footer__links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .3); padding-block: 1.1rem; font-size: .9rem; }
.site-footer__bottom p { margin: 0; }
.site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #000; }
@media (max-width: 48rem) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- page banner (inner pages) */
.page-banner { position: relative; margin: 1.25rem 1.25rem 2.75rem; border-radius: 24px; min-height: 15rem; display: grid; place-items: center; text-align: center; color: #fff; padding: 3rem 1.25rem 3.5rem;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(213, 138, 43, .35), transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(111, 107, 72, .55), transparent 60%),
    repeating-radial-gradient(circle at 70% 40%, rgba(255, 255, 255, .045) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #3b2c1c, #5a4428 55%, #3a3322); }
.page-banner h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .5rem; }
.page-banner__sub { max-width: 40rem; margin: 0 auto; font-size: 1.05rem; color: #fff; }
.page-banner__crumbs { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); background: var(--paper); border-radius: 999px; padding: .45rem 1.25rem; box-shadow: var(--shadow); max-width: calc(100% - 2rem); }
.page-banner__crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .35rem; font-size: .9rem; color: var(--ink); }
.page-banner__crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--muted); }
.page-banner__crumbs a { color: var(--ink); font-weight: 650; }
.page-banner :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #000; }
.page-banner__crumbs :focus-visible { outline-color: var(--focus); box-shadow: 0 0 0 6px var(--focus-halo); }

/* ---------------------------------------------------------------- breadcrumbs, tabs, letters, toolbar */
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .95rem; }
.breadcrumbs li + li::before { content: "/"; margin: 0 .4rem; color: var(--muted); }
.tabs ul, .letters ul, .action-bar ul, .button-list, .link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.link-list { flex-direction: column; margin-top: 1.5rem; }
.tabs { margin: 1rem 0 1.5rem; }
.tabs ul { margin: 0; background: var(--cream); padding: .35rem; border-radius: 999px; display: inline-flex; }
.tabs a { display: inline-flex; min-height: 40px; align-items: center; padding: .3rem 1rem; text-decoration: none; border-radius: 999px; color: var(--ink); font-weight: 500; }
.tabs a:hover { text-decoration: underline; }
.tabs a[aria-current="page"] { background: var(--olive); color: #fff; font-weight: 650; }
.letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border-radius: 999px; text-decoration: none; background: var(--cream); color: var(--ink); font-weight: 600; }
.letters a:hover { background: var(--sand); }
.letters a[aria-current="page"] { background: var(--olive); color: #fff; }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.list-toolbar > p { margin: 0; color: var(--muted); }
.segmented { display: inline-flex; background: var(--cream); padding: .3rem; border-radius: 999px; }
.segmented a { min-height: 40px; display: inline-flex; align-items: center; padding: .2rem 1rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.segmented a[aria-current="page"] { background: var(--olive); color: #fff; font-weight: 650; }
.pagination ul { list-style: none; padding: 0; display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.pagination a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--sand); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); }
.pagination a[aria-current="page"] { background: var(--olive); color: #fff; border-color: var(--olive); }

/* ---------------------------------------------------------------- buttons (min 44x44, WCAG 2.5.8) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.35rem; border: 2px solid var(--olive); border-radius: 999px; background: transparent; color: var(--olive-deep); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--cream); text-decoration: underline; }
.btn--primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn--primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn--dark { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--error-bg); }
.btn--quiet { border-color: var(--sand); color: var(--ink); }
.btn--small { min-height: 36px; padding: .3rem .9rem; font-size: .92rem; }
.link-button { background: none; border: 0; padding: .25rem 0; min-height: 32px; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button.small { font-size: .9rem; }
.inline-form { display: inline; }
.button-row, .form-actions, .quick-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.more-link { font-weight: 650; }

/* ---------------------------------------------------------------- forms */
fieldset { border: 1px solid var(--sand); border-radius: var(--radius); padding: 1.1rem 1.25rem .6rem; margin: 0 0 1.25rem; background: var(--surface); min-width: 0; }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; padding: 0 .4rem; }
.field { margin-bottom: 1.1rem; }
.field label, .small-label { display: block; font-weight: 600; margin-bottom: .25rem; }
.small-label { font-size: .9rem; margin-top: .4rem; }
.req, .hint-inline { font-weight: 400; color: var(--muted); font-size: .9rem; }
.hint { margin: 0 0 .35rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=file],
input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; max-width: 40rem; min-height: 44px; padding: .55rem .8rem; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.input-narrow { max-width: 6rem !important; }
textarea { min-height: 6rem; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); border-width: 3px; }
.field--error { border-left: 5px solid var(--danger); padding-left: .9rem; }
.error-message { color: var(--danger); font-weight: 700; margin: 0 0 .35rem; }
.error-summary { border: 4px solid var(--danger); background: var(--error-bg); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.error-summary h2 { margin-top: 0; font-size: 1.3rem; }
.error-summary a { color: var(--danger); font-weight: 700; }
.checkbox, .radio { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem; margin-bottom: .7rem; }
.checkbox input, .radio input { width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: var(--olive); flex: none; }
.checkbox label, .radio label { font-weight: 500; flex: 1; min-width: 0; }
.checkbox .hint { flex-basis: 100%; margin-left: 2rem; }
.inline-radios { border: 0; padding: 0; background: none; }
.inline-radios .radio { display: inline-flex; margin-right: 1.5rem; }
.input-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.input-row input { flex: 1 1 16rem; }
.checkbox-list { list-style: none; padding: .5rem; margin: .5rem 0; max-height: 20rem; overflow-y: auto; border: 1px solid var(--sand); border-radius: 10px; }
.checkbox-list--plain { max-height: none; border: 0; padding: 0; }
.checkbox-list .checkbox { margin-bottom: .35rem; }
.tag-filter { max-width: 20rem; }
.picker { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; background: var(--cream); padding: 1.1rem 1.25rem; border-radius: var(--radius); }
.picker .field { margin: 0; flex: 1 1 14rem; }
.access-form { display: grid; gap: .1rem; max-width: 18rem; margin-bottom: .5rem; }

/* ---------------------------------------------------------------- flash messages & callouts */
.flash { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border-left: 6px solid; }
.flash--success { background: var(--success-bg); border-color: var(--olive); }
.flash--error { background: var(--error-bg); border-color: var(--danger); }
.flash--info { background: var(--info-bg); border-color: var(--amber); }
.flash__label { margin-right: .35rem; }
.callout { background: var(--cream); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border-left: 6px solid var(--olive); }
.callout h2 { margin-top: 0; font-size: 1.35rem; }
.callout--warn { background: var(--amber-soft); border-left-color: var(--amber); }
.empty { background: var(--cream); border-radius: var(--radius); padding: 2rem; text-align: center; }

/* ---------------------------------------------------------------- panels & generic layout */
.panel { background: var(--surface); border: 1px solid var(--sand); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); min-width: 0; }
.panel > h2:first-child { margin-top: 0; }
details > summary { cursor: pointer; font-weight: 650; min-height: 44px; display: list-item; padding: .5rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 1.75rem; }
.grid-2--top { align-items: start; margin-top: 1rem; }
.grid-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem; }
@media (max-width: 54rem) { .grid-profile { grid-template-columns: 1fr; } }
.section-head { margin-bottom: 1rem; }
.section-head h2, .section-head h3 { margin: 0; }
.ornament { display: block; width: 4.5rem; height: 10px; margin-top: .7rem;
  background: radial-gradient(circle, var(--amber) 3px, transparent 3.5px) center / 10px 10px no-repeat,
              linear-gradient(var(--sand), var(--sand)) left center / 100% 2px no-repeat; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.split-head .section-head { margin: 0; }
.split-head__note { max-width: 26rem; color: var(--muted); margin: 0; }
.stats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.stats li { background: var(--surface); border: 1px solid var(--sand); border-radius: var(--radius); padding: .8rem 1.3rem; min-width: 9rem; }
.stats__n { display: block; font-family: var(--serif); font-size: 2rem; color: var(--olive-deep); line-height: 1.1; }
.event-list, .activity { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.activity li { border-bottom: 1px dashed var(--sand); padding-bottom: .55rem; }
.activity .meta { display: block; }
.event { display: grid; gap: .1rem; }
.event__when { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tag { display: inline-block; font-size: .8rem; padding: .1rem .6rem; border-radius: 999px; font-weight: 700; background: var(--cream); color: var(--ink); }
.tag--warn { background: var(--amber-soft); color: #5b3a06; border: 1px solid #b3741a; }

/* ---------------------------------------------------------------- HOME: hero */
.hero { background: var(--cream); margin: 0 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 30rem; }
.hero__copy { padding: 3.5rem max(1.25rem, calc((100vw - 76rem) / 2 + 1.25rem)) 3rem max(1.25rem, calc((100vw - 76rem) / 2 + 1.25rem)); padding-right: 2.5rem; align-self: center; }
.display { font-size: clamp(2.2rem, 4.6vw, 3.6rem); text-transform: uppercase; letter-spacing: .01em; line-height: 1.08; margin: .25rem 0 1.25rem; }
.hero__lead { font-size: 1.08rem; color: var(--muted); max-width: 34rem; }
.hero__photo { position: relative; min-height: 22rem; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: var(--sand); }
@media (max-width: 54rem) { .hero__grid { grid-template-columns: 1fr; } .hero__photo { min-height: 18rem; } .hero__copy { padding: 2rem 1.25rem; } }

/* Ticker strip (static, decorative) */
.ticker { background: var(--amber-soft); border-block: 1px solid var(--sand); overflow: hidden; }
.ticker ul { list-style: none; margin: 0; padding: .8rem 0; display: flex; gap: 0; white-space: nowrap; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); width: max-content; }
.ticker li { display: inline-flex; align-items: center; }
.ticker li::after { content: "✻"; color: var(--amber); margin: 0 1.25rem; font-size: 1rem; }

/* Intro block */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; margin: 2.5rem 0 3rem; }
.intro__photo img, .intro__placeholder { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; display: block; }
.intro__placeholder { background: linear-gradient(135deg, var(--sand), var(--amber-soft)); }
.intro__text h2 { font-size: 2.2rem; }
.numbers { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 1.5rem 0; }
.numbers__n { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.numbers__n::after { content: "+"; color: var(--amber); font-size: 1.6rem; vertical-align: top; margin-left: .1rem; }
.numbers__label { font-size: .9rem; color: var(--muted); }
@media (max-width: 54rem) { .intro { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Birthdays row */
.birthdays { margin: 1rem 0 3rem; }
.birthday-row { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1.5rem 1rem; }
.birthday { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.birthday__photo { position: relative; }
.birthday__badge { margin-top: -1.1rem; position: relative; background: var(--amber); color: var(--amber-ink); font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .15rem .7rem; }
.birthday__name { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-top: .35rem; }
.birthday__detail { font-size: .85rem; color: var(--muted); }

/* Olive bands */
.band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; background: var(--olive); color: var(--olive-ink); border-radius: 28px; padding: 2rem; margin: 2rem 0 3rem; }
.band h2, .band h3, .band .eyebrow { color: #fff; }
.band .eyebrow::before { background: var(--amber); }
.band .ornament { background: radial-gradient(circle, var(--amber) 3px, transparent 3.5px) center / 10px 10px no-repeat, linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) left center / 100% 2px no-repeat; }
.band a:not(.btn) { color: #fff; }
.band :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #000; }
.band__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; display: block; filter: sepia(.25) saturate(.9); }
.band__card { background: var(--charcoal); color: #fff; border-radius: 20px; padding: 1.5rem; align-self: stretch; }
.band__card-title { margin: 0 0 1rem; font-size: 1.5rem; color: #fff; }
.band__card a { color: #fff; }
.band__card .dates { color: #e8e1d3; }
.band__card .event__when { color: var(--amber-soft); }
.checks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.checks li { display: flex; gap: .6rem; align-items: baseline; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; flex: none; border-radius: 50%; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: .8rem; }
@media (max-width: 62rem) { .band { grid-template-columns: 1fr; } .band__photo img { aspect-ratio: 16 / 9; } }

/* Remembering this week */
.remember { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.5rem; align-items: center; background: var(--cream); border-radius: 28px; padding: 2.5rem; margin: 3rem 0; }
.remember h2 { font-size: 2.1rem; }
.remember__dates { font-weight: 600; color: var(--muted); }
.frame { margin: 0; justify-self: center; text-align: center; }
.frame__inner { width: min(17rem, 70vw); aspect-ratio: 3 / 4; padding: 1.1rem; border-radius: 10px; background:
  repeating-linear-gradient(45deg, #3a2a1a 0 6px, #4d3822 6px 12px); box-shadow: inset 0 0 0 6px #2a1d10, 0 14px 30px rgba(40, 25, 5, .35), inset 0 0 0 10px #8a6a3a; display: grid; place-items: center; }
.frame__inner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) sepia(.3); border: 4px solid #e9dcc3; }
.frame__initials { width: 100%; height: 100%; display: grid; place-items: center; background: #e9dcc3; font-family: var(--serif); font-size: 3rem; color: var(--olive-deep); }
.frame__plate { display: inline-block; margin-top: -.9rem; position: relative; background: linear-gradient(#d9b56a, #b8924a); color: #2a1d10; font-family: var(--serif); font-size: .95rem; padding: .25rem 1rem; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
@media (max-width: 54rem) { .remember { grid-template-columns: 1fr; padding: 1.5rem; } }

/* Services */
.services { margin: 3rem 0; }
.services__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.service { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.5rem; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--sand); }
.service:hover { background: var(--cream); }
.service:hover .service__title { text-decoration: underline; }
.service svg { width: 3rem; height: 3rem; fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service__title { font-family: var(--serif); font-size: 1.3rem; }
.service__text { color: var(--muted); }
.feature-links { display: none; }

/* Photo cards row */
.photo-row { margin: 3rem 0; }
.photo-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.photo-card a { display: block; text-decoration: none; color: var(--ink); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.photo-card__title { display: block; text-align: center; font-family: var(--serif); font-size: 1.1rem; margin-top: .7rem; }
.photo-card a:hover .photo-card__title { text-decoration: underline; }
.photo-card__people { text-align: center; color: var(--muted); font-size: .9rem; }

/* Get started mini tree */
.band--start { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.mini-tree { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 1rem; }
.mini-tree__row { display: flex; gap: 2.5rem; justify-content: center; }
.mini-tree__node { display: flex; flex-direction: column; align-items: center; gap: .3rem; background: #fff; color: var(--ink); border-radius: 16px; padding: .8rem 1rem; min-width: 7rem; font-weight: 600; }
.mini-tree__node--me { outline: 3px solid var(--amber); }
.mini-tree__line { width: 2px; height: 2.25rem; background: rgba(255, 255, 255, .7); position: relative; }
.mini-tree__line::before { content: ""; position: absolute; top: 0; left: 50%; width: 9.5rem; transform: translateX(-50%); border-top: 2px solid rgba(255, 255, 255, .7); }
.steps { padding-left: 1.4rem; display: grid; gap: .4rem; }
.steps--big { gap: .8rem; font-size: 1.05rem; margin-bottom: 1.5rem; }
@media (max-width: 62rem) { .band--start { grid-template-columns: 1fr; } }

/* Story cards */
.story-cards { list-style: none; padding: 0; display: grid; gap: 1rem; }
.story-card { background: var(--cream); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.story-card__who { font-size: .85rem; font-weight: 600; margin: 0 0 .2rem; }
.story-card__title { margin: 0 0 .4rem; font-size: 1.2rem; }
.story-card p { margin-bottom: .4rem; }

/* ---------------------------------------------------------------- people */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; flex: none; background: var(--cream); color: var(--olive-deep); font-family: var(--serif); border: 2px solid var(--sand); }
.avatar--sm { width: 2.75rem; height: 2.75rem; font-size: 1rem; }
.avatar--md { width: 4rem; height: 4rem; font-size: 1.3rem; }
.avatar--lg { width: 12rem; height: 15rem; font-size: 3rem; border-radius: 999px 999px 24px 24px; border: 6px solid #fff; box-shadow: var(--shadow); }
.avatar--xl { width: 8.5rem; height: 8.5rem; font-size: 2.2rem; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--sand); }
.card-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .75rem; }
.card-list--compact { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.person-card { display: flex; gap: .75rem; align-items: center; background: var(--cream); border-radius: 14px; padding: .65rem .85rem; height: 100%; }
.person-card > div { display: flex; flex-direction: column; min-width: 0; }
.person-card__name { font-weight: 650; }
.person-card .note { color: var(--muted); font-size: .9rem; }
.member-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem 1.25rem; }
.member-card { text-align: center; height: 100%; }
.member-card__photo { aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden; background: var(--cream); display: grid; place-items: center; }
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.member-card--memory .member-card__photo img { filter: grayscale(.6) sepia(.25); }
.member-card__initials { font-family: var(--serif); font-size: 2.6rem; color: var(--olive-deep); }
.member-card__name { font-size: 1.2rem; margin: .8rem 0 .15rem; }
.member-card__name a { color: var(--ink); text-decoration: none; }
.member-card__name a:hover { text-decoration: underline; }
.member-card__dates { margin: 0; color: var(--ink); font-weight: 600; font-size: .92rem; }
.member-card__note { margin: .1rem 0 0; color: var(--muted); font-size: .88rem; }
.profile-head { display: flex; gap: 2.25rem; align-items: center; flex-wrap: wrap; background: var(--cream); border-radius: 28px; padding: 2rem; }
.profile-head h1 { margin-bottom: .25rem; }
.lifespan { font-size: 1.15rem; color: var(--muted); margin: 0 0 .6rem; }
.relation-badge { display: inline-block; background: var(--amber); color: var(--amber-ink); border-radius: 999px; padding: .25rem 1rem; font-weight: 700; margin: 0 0 .5rem; }
.action-bar { margin: 1.25rem 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.story { border-top: 1px solid var(--sand); padding-top: .5rem; }
.sources li { margin-bottom: .5rem; }

/* ---------------------------------------------------------------- tree charts (nested lists drawn with CSS) */
.chart-scroll { overflow-x: auto; padding: 1.5rem 0 2rem; border-radius: var(--radius); background: var(--cream); }
.tree-node { display: inline-flex; align-items: center; gap: .65rem; background: var(--surface); border: 1px solid var(--sand); border-radius: 999px 18px 18px 999px; padding: .4rem 1rem .4rem .4rem; text-decoration: none; color: var(--ink); min-width: 14rem; max-width: 18rem; min-height: 44px; box-shadow: var(--shadow); }
.tree-node:hover { background: var(--amber-soft); }
.tree-node .avatar { border-color: var(--amber); }
.tree-node--deceased .avatar { filter: grayscale(.6); }
.tree-node--add { border-style: dashed; color: var(--link); justify-content: center; font-weight: 600; border-radius: 18px; padding: .6rem 1rem; box-shadow: none; }
.tree-node__text { display: flex; flex-direction: column; min-width: 0; }
.tree-node__name { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
.tree-node__dates { color: var(--muted); font-size: .85rem; }
.pedigree, .pedigree ul { list-style: none; margin: 0; padding: 0; }
.pedigree li { display: flex; align-items: center; position: relative; padding: .45rem 0 .45rem 2.25rem; }
.pedigree > li { padding-left: 1.25rem; }
.pedigree ul { display: flex; flex-direction: column; justify-content: center; position: relative; }
.pedigree ul li::before { content: ""; position: absolute; left: 0; top: 50%; width: 2.25rem; border-top: 2px solid var(--amber); }
.pedigree ul li::after { content: ""; position: absolute; left: 0; border-left: 2px solid var(--amber); top: 0; bottom: 0; }
.pedigree ul li:first-child::after { top: 50%; }
.pedigree ul li:last-child::after { bottom: 50%; }
.pedigree ul li:only-child::after { display: none; }
.descendants, .descendants ul { list-style: none; margin: 0; padding: 0 0 0 1.25rem; }
.descendants ul { padding-left: 2.75rem; position: relative; }
.descendants li { position: relative; padding: .4rem 0; }
.descendants ul > li::before { content: ""; position: absolute; left: -1.75rem; top: 2rem; width: 1.75rem; border-top: 2px solid var(--amber); }
.descendants ul > li::after { content: ""; position: absolute; left: -1.75rem; top: 0; bottom: 0; border-left: 2px solid var(--amber); }
.descendants ul > li:last-child::after { bottom: auto; height: 2rem; }
.desc-node { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.desc-partners { color: var(--muted); }
.big-answer { font-size: 1.45rem; font-family: var(--serif); }
.path li { margin-bottom: .35rem; }

/* Timeline (alternating on wide screens) */
.timeline { list-style: none; padding: 0; position: relative; margin: 2rem 0; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1.25rem; border-left: 2px solid var(--amber); }
.timeline li { position: relative; padding: 0 0 1.5rem 3.5rem; }
.timeline__year { position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: .72rem; }
.timeline__body { background: var(--cream); border-radius: var(--radius); padding: .9rem 1.2rem; }
.timeline__text { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.timeline .meta { margin: .2rem 0 0; }
@media (min-width: 54rem) {
  .timeline::before { left: 50%; }
  .timeline li { width: 50%; padding: 0 3rem 2rem 0; }
  .timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 2rem 3rem; }
  .timeline__year { left: auto; right: -1.25rem; }
  .timeline li:nth-child(even) .timeline__year { left: -1.25rem; right: auto; }
}
.place-list { list-style: none; padding: 0; columns: 2 22rem; }
.place-list > li { break-inside: avoid; margin-bottom: 1rem; }

/* ---------------------------------------------------------------- gallery */
.thumb-grid, .gallery-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .9rem; }
.thumb-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 14px; display: block; }
.gallery-layout { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; }
@media (max-width: 54rem) { .gallery-layout { grid-template-columns: 1fr; } }
.side-nav ul { list-style: none; padding: 0; }
.side-nav a { display: block; padding: .45rem .8rem; border-radius: 999px; min-height: 40px; color: var(--ink); text-decoration: none; }
.side-nav a:hover { background: var(--cream); text-decoration: underline; }
.side-nav a[aria-current="page"] { background: var(--olive); color: #fff; font-weight: 650; }
.gallery-item { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--ink); height: 100%; }
.gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 16px; }
.gallery-item__caption { font-size: .92rem; overflow-wrap: anywhere; }
.gallery-item:hover .gallery-item__caption { text-decoration: underline; }
.file-icon { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; width: 100%; background: var(--cream); border-radius: 16px; font-size: 2rem; font-weight: 700; color: var(--olive-deep); }
.media-figure { margin: 0 0 1.5rem; }
.media-figure img { max-height: 75vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-figure audio, .media-figure video { width: 100%; max-width: 48rem; }
.media-figure figcaption { margin-top: .75rem; color: var(--muted); }
.describe-list { padding-left: 1.2rem; }
.describe-item { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--sand); }
.describe-item img, .describe-item .file-icon { width: 8rem; border-radius: 10px; }
.toc ul { columns: 2 14rem; }
.table-scroll { overflow-x: auto; position: relative; }  /* keeps hidden labels from widening the page */
.pager { display: flex; gap: 1rem; margin-top: 1rem; }

/* ---------------------------------------------------------------- events */
.event-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 1.25rem; }
.event-card { display: grid; grid-template-columns: 40% 1fr; background: var(--cream); border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 12rem; }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__placeholder { height: 100%; display: grid; place-content: center; text-align: center; background: var(--olive); color: #fff; font-family: var(--serif); font-size: 3rem; line-height: 1; }
.event-card__placeholder small { font-family: var(--sans); font-size: 1rem; letter-spacing: .15em; text-transform: uppercase; margin-top: .4rem; }
.event-card__body { padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.event-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: 0; }
.event-card__type { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive-deep); }
.chips ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: .2rem .95rem; border-radius: 999px; border: 1px solid var(--sand); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .92rem; }
.chips a:hover { background: var(--cream); text-decoration: underline; }
.chips a[aria-current="page"] { background: var(--olive); border-color: var(--olive); color: #fff; font-weight: 650; }
.family-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.family-card { background: var(--cream); border-radius: var(--radius); padding: 1.4rem; }
.family-card__faces { display: flex; padding-left: .6rem; margin-bottom: .9rem; }
.family-card__faces .avatar { margin-left: -.6rem; border: 3px solid var(--cream); }
.family-card__more { background: var(--olive); color: #fff; font-family: var(--sans); font-size: .95rem; font-weight: 700; }
.family-card__name { font-size: 1.35rem; margin: 0 0 .25rem; }
.family-card__name a { color: var(--ink); text-decoration: none; }
.family-card__name a:hover { text-decoration: underline; }
.family-card__meta { margin: 0; color: var(--muted); }
.count-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.danger-zone { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.date-pill { align-self: flex-start; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: .82rem; padding: .15rem .7rem; border-radius: 8px; margin: 0; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.icon-text { display: inline-flex; align-items: center; gap: .35rem; }
.icon-text svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.event-card__title { font-size: 1.35rem; margin: .25rem 0; }
.event-card__title a { color: var(--ink); text-decoration: none; }
.event-card__title a:hover { text-decoration: underline; }
.event-card__foot { margin: auto 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-weight: 700; }
.event-card__cost { font-size: 1.1rem; }
.event-card__going { color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 30rem) { .event-card { grid-template-columns: 1fr; } .event-card__img img, .event-card__placeholder { aspect-ratio: 16 / 9; } }
.home-events { margin: 3rem 0; }
.event-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.event-detail__photo { margin: 0 0 1.5rem; }
.event-detail__photo img { width: 100%; border-radius: var(--radius); max-height: 28rem; object-fit: cover; }
.facts--event { background: var(--cream); padding: 1.2rem 1.4rem; border-radius: var(--radius); }
@media (max-width: 54rem) { .event-detail { grid-template-columns: 1fr; } }
.guest-group-title { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: .04em; margin: 1.2rem 0 .5rem; }
.guest-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.guest-list li { display: flex; align-items: center; gap: .7rem; }
.guest-tools { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 58rem) { .guest-tools { grid-template-columns: 1fr; } }
.family-list { max-height: 30rem; overflow-y: auto; padding-right: .25rem; margin: .75rem 0 1rem; }
.family { padding: .8rem 1rem .3rem; background: var(--paper); }
.family legend { font-size: 1.05rem; }
.family__all label { font-weight: 650; }

/* ---------------------------------------------------------------- sign-in options */
.or-divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem; color: var(--muted); }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--sand); }
.provider-list { list-style: none; padding: 0; display: grid; gap: .6rem; margin: 0 0 .75rem; }
.provider-btn { width: 100%; justify-content: center; border-color: var(--border); color: var(--ink); background: var(--surface); }
.button-row .provider-btn { width: auto; }
.provider-btn--apple { background: #000; border-color: #000; color: #fff; }
.provider-btn--apple:hover { background: #222; }
.signin-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.signin-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; padding: .55rem .8rem; background: var(--cream); border-radius: 10px; }

/* ---------------------------------------------------------------- sign-in welcome */
.welcome { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 1rem; }
.welcome__kicker { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; }
.welcome__name { margin: 0; font-family: var(--serif); font-size: 2.6rem; color: var(--ink); line-height: 1.1; }

@media print {
  .topbar, .site-header, .site-footer, .action-bar, .tabs, .picker, .skip-link, form, .ticker { display: none !important; }
  body { background: #fff; }
  .chart-scroll { overflow: visible; }
  .page-banner { background: none; color: #000; min-height: 0; }
  .page-banner h1, .page-banner__sub { color: #000; }
}


/* =====================================================================
   v2 refinements: sticky glass header, calmer rhythm, layered cards,
   gentle motion (disabled for reduced-motion), maps, address choices.
   ===================================================================== */
:root { --shadow-sm: 0 1px 2px rgba(43, 38, 32, .05); --shadow: 0 1px 2px rgba(43, 38, 32, .04), 0 10px 30px -12px rgba(60, 40, 10, .18);
  --shadow-lg: 0 2px 4px rgba(43, 38, 32, .04), 0 24px 48px -18px rgba(60, 40, 10, .28); --ease: cubic-bezier(.2, .7, .2, 1); }
body { font-size: 1rem; letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
h1, h2, .display { letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.main-wrap { padding-top: 2rem; }

/* Sticky glass header (desktop) */
@media (min-width: 70.01rem) {
  .masthead { position: sticky; top: 0; z-index: 60; }
  .site-header { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header { border-bottom-color: rgba(232, 220, 198, .7); }
.main-nav a { position: relative; border-radius: 999px; padding-inline: .8rem; transition: background .2s var(--ease); }
.main-nav a:hover { background: var(--cream); text-decoration: none; }
.main-nav a[aria-current="page"] { background: var(--cream); text-decoration: none; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--amber); }

/* Buttons: a touch of depth and an arrow for "go somewhere" actions */
.btn { transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.btn--primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 16px -8px rgba(213, 138, 43, .9); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 22px -10px rgba(213, 138, 43, 1); }
a.btn--primary::after, a.btn--ghost::after { content: "→"; margin-left: .15rem; transition: transform .2s var(--ease); }
a.btn--primary:hover::after, a.btn--ghost:hover::after { transform: translateX(3px); }
.btn:hover { text-decoration: none; }

/* Cards lift gently on hover */
.member-card, .event-card, .family-card, .service, .photo-card a, .gallery-item, .story-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.event-card, .family-card, .story-card { box-shadow: var(--shadow-sm); }
.event-card:hover, .family-card:hover, .service:hover, .story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member-card:hover .member-card__photo, .photo-card a:hover img, .gallery-item:hover img { transform: scale(1.03); }
.member-card__photo img, .photo-card img, .gallery-item img, .event-card__img img { transition: transform .5s var(--ease); }
.photo-card a, .gallery-item, .member-card__photo, .event-card__img { overflow: hidden; border-radius: var(--radius); }
.member-card__photo { transition: transform .5s var(--ease); box-shadow: var(--shadow-sm); }
.panel { border-color: rgba(232, 220, 198, .8); }

/* Warm, varied placeholders instead of flat grey (5 tints chosen by person) */
.tint-0 { --tint-a: #f3e3c6; --tint-b: #e6c89a; } .tint-1 { --tint-a: #e9ecd8; --tint-b: #c9cda4; }
.tint-2 { --tint-a: #f4ddd2; --tint-b: #e2b49f; } .tint-3 { --tint-a: #e4e8ec; --tint-b: #b9c4cc; }
.tint-4 { --tint-a: #efe6d8; --tint-b: #d6c2a1; }
.avatar--initials, .member-card__photo--empty, .frame__initials {
  background: radial-gradient(120% 90% at 30% 20%, var(--tint-a, #f3ede1), var(--tint-b, #e8dcc6)); color: var(--olive-deep); }
.member-card__photo--empty { position: relative; }
.member-card__photo--empty::before { content: ""; position: absolute; inset: auto 22% -8% 22%; height: 46%; border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, .35); }
.member-card__photo--empty::after { content: ""; position: absolute; left: 50%; top: 26%; width: 30%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: rgba(255, 255, 255, .4); }
.member-card__photo--empty .member-card__initials { position: relative; z-index: 1; margin-top: 46%; font-size: 1.6rem; letter-spacing: .04em; }

/* Hero v2: rounded photo with a floating "next up" card */
.hero { background: linear-gradient(180deg, var(--cream), var(--paper)); }
.hero__photo { margin: 1.5rem 1.25rem 1.5rem 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__float { position: absolute; left: 1.25rem; bottom: 1.25rem; right: auto; max-width: 20rem; display: flex; gap: .8rem; align-items: center;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 18px; padding: .75rem 1rem; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.hero__float:hover .hero__float-title { text-decoration: underline; }
.hero__float-date { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px; background: var(--amber); color: var(--amber-ink); font-weight: 700; line-height: 1; font-size: 1.25rem; flex: none; }
.hero__float-date small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.hero__float-kicker { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero__float-title { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; }
.hero__faces { display: flex; align-items: center; gap: .75rem; margin-top: 1.75rem; color: var(--muted); font-size: .92rem; }
.hero__faces .avatar { margin-left: -.7rem; border: 3px solid var(--cream); }
.hero__faces .avatar:first-child { margin-left: 0; }
@media (max-width: 54rem) { .hero__photo { margin: 0 1.25rem 1.5rem; } }

/* Section rhythm */
.intro, .services, .photo-row, .home-events, .birthdays, .remember, .band { margin-block: 4rem; }
.section-gap { margin-top: 3rem; }

/* Maps */
.map-wrap { margin: 1rem 0 1.5rem; }
.map { width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sand); background: #e9eef0; z-index: 0; box-shadow: var(--shadow-sm); }
.leaflet-container.map--outline { background: #d6e4e8; }
.map--sm { height: 16rem; } .map--md { height: 22rem; } .map--lg { height: min(34rem, 70vh); }
.map:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pin { display: grid !important; place-items: center; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); color: #fff; font-weight: 700; font-size: .7rem; font-family: var(--sans); }
.pin--born { background: var(--amber); color: var(--amber-ink); } .pin--lives { background: var(--olive); }
.pin--died { background: #6b6259; } .pin--buried { background: var(--charcoal); } .pin--event { background: #a3261b; }
.pin:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pin-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--sand); vertical-align: -1px; }
.pin-dot--born { background: var(--amber); } .pin-dot--lives { background: var(--olive); } .pin-dot--died { background: #6b6259; } .pin-dot--buried { background: var(--charcoal); }
.map-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }
.map-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.map-filters { border: 0; padding: 0; background: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.map-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .2rem .9rem; border: 1px solid var(--sand); border-radius: 999px; background: var(--surface); font-size: .92rem; cursor: pointer; }
.map-chip input { accent-color: var(--olive); width: 1.1rem; height: 1.1rem; margin: 0; }
.map-empty { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }
.map-popup { list-style: none; padding: 0; margin: .35rem 0 0; display: grid; gap: .2rem; }
.leaflet-container { font-family: var(--sans); }
.leaflet-container a { color: var(--link); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.map-privacy { margin-top: -.5rem; }
address.addr { font-style: normal; }

/* Address visibility choice cards */
.choice-cards { border: 0; padding: 0; background: none; margin-top: .5rem; }
.choice-cards legend { font-family: var(--sans); font-size: 1rem; font-weight: 650; padding: 0; margin-bottom: .5rem; }
.choice-card { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: start; padding: .8rem 1rem; border: 1.5px solid var(--sand); border-radius: 14px; margin-bottom: .55rem; background: var(--surface); }
.choice-card:has(input:checked) { border-color: var(--olive); background: #f6f7ee; }
.choice-card input { width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; accent-color: var(--olive); }
.choice-card label { font-weight: 650; }
.choice-card .hint { grid-column: 2; margin: 0; }
