/* tillwemeet — limestone grounds, adire indigo, brass.
   One loud thing: the headstones. Everything else stays quiet. */

:root {
  --ground: #E4E5E0;
  --ground-deep: #D4D6CF;
  --paper: #F4F4F0;
  --ink: #1F2436;
  --ink-2: #3B4155;
  --muted: #5F6472;
  --line: #C3C6BD;
  --brass: #94743A;
  --brass-hi: #C9A35A;
  --laterite: #8E3F2B;
  --moss: #4F5D49;
  --ok: #3E6B4A;
  --warn: #8A6418;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --carve: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 4px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.65 var(--serif); font-optical-sizing: auto; }
img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline; margin: 0; }
.h-sub { font-size: 1.2rem; margin-top: 1.6em; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.opt { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85em; }
i, .i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 500 .95rem/1 var(--ui); padding: .8em 1.25em; border-radius: var(--r); border: 1px solid var(--bg); background: var(--bg); color: var(--fg);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { color: var(--fg); filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn--ink { --bg: var(--ink); }
.btn--brass { --bg: var(--brass); --fg: #fff; }
.btn--bronze { --bg: #6E4B2C; }
.btn--danger { --bg: var(--laterite); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; filter: none; }
.btn--ghost-light { background: transparent; color: #F1EEE6; border-color: rgba(241, 238, 230, .55); }
.btn--ghost-light:hover { background: rgba(241, 238, 230, .1); color: #fff; }
.btn--sm { padding: .55em .9em; font-size: .85rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; margin-top: .5rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header / footer ---------- */
.site-head { background: var(--ink); color: #EDEAE2; position: relative; z-index: 10; }
.site-head__in { max-width: var(--wrap); margin: 0 auto; padding: .85rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; font: 500 1.25rem/1 var(--carve); letter-spacing: .06em; color: #F3EFE6; text-decoration: none; text-transform: lowercase; margin: 0; }
.wordmark:hover { color: #fff; }
.wordmark__flame { color: var(--brass-hi); width: 1.3em; height: 1.3em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; font: 500 .92rem var(--ui); }
.site-nav a, .site-nav .linklike { color: #D9D6CE; text-decoration: none; }
.site-nav a:hover, .site-nav .linklike:hover { color: #fff; }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: .4rem; cursor: pointer; }
.nav-toggle .i { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-open .site-nav { display: flex; }
  .site-nav a, .site-nav .linklike { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .site-nav .btn { margin-top: 1rem; border-bottom: 0; }
}
.site-foot { background: var(--ink); color: #B9B7B0; margin-top: 5rem; font-family: var(--ui); font-size: .92rem; }
.site-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.25rem 1.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
.site-foot__in nav { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; align-content: start; }
.site-foot a { color: #DAD7CF; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .muted { color: #9C9A94; max-width: 46ch; margin-top: 1rem; }
.site-foot__legal { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); color: #85837D; font-size: .82rem; }
@media (max-width: 720px) { .site-foot__in { grid-template-columns: 1fr; gap: 2rem; } }
.demo-banner { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; background: #F0E2BD; color: #4A3A12; font: 500 .8rem var(--ui); text-align: center; padding: .4rem; z-index: 40; }

/* ---------- Flash ---------- */
.flash-stack { max-width: var(--wrap); margin: 1rem auto 0; padding: 0 1.25rem; }
.flash { margin: 0 0 .5rem; padding: .75rem 1rem; border-left: 3px solid var(--ink); background: var(--paper); font: 500 .95rem var(--ui); }
.flash--ok { border-color: var(--ok); }
.flash--error { border-color: var(--laterite); }
.flash--info { border-color: var(--brass); }

/* ---------- Headstone card: the one loud thing ---------- */
.stone { --face: linear-gradient(170deg, #B3B6B1 0%, #9A9E99 55%, #8B8F8A 100%); --edge: #7B7F7A; --carve-c: #3B3F44; --carve-hi: rgba(255,255,255,.35);
  --frame: #8E918D; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--carve-c); width: 196px; flex: none; }
.stone__face { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.4rem .9rem 1.1rem;
  background: var(--face); border-radius: 50% 50% 4px 4px / 22% 22% 4px 4px; aspect-ratio: 196 / 290;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -18px 30px rgba(0,0,0,.12), 0 1px 0 var(--edge), 0 18px 24px -18px rgba(20,22,30,.55); transition: transform .2s ease; }
.stone__face::after { content: ''; position: absolute; inset: 7px; border-radius: inherit; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.stone__plinth { width: 116%; height: 16px; background: linear-gradient(#8F938E, #7D817C); border-radius: 2px; box-shadow: 0 10px 18px -10px rgba(20,22,30,.6); }
.stone:hover .stone__face { transform: translateY(-3px); }
.stone:hover { color: var(--carve-c); }
.stone__photo { width: 58%; aspect-ratio: 4 / 5; border-radius: 50%; overflow: hidden; border: 3px solid var(--frame); box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 3px 8px rgba(0,0,0,.25); background: #ccc; margin-bottom: .85rem; }
.stone__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.stone__titles { font: 500 .62rem/1.3 var(--carve); letter-spacing: .12em; text-shadow: 0 1px 0 var(--carve-hi); opacity: .9; }
.stone__name { font: 600 .98rem/1.18 var(--carve); letter-spacing: .03em; margin: .2rem 0 .35rem; text-shadow: 0 1px 0 var(--carve-hi); overflow-wrap: anywhere; }
.stone__years { font: 500 .8rem var(--carve); letter-spacing: .08em; text-shadow: 0 1px 0 var(--carve-hi); }
.stone__more { margin-top: auto; font: 500 .74rem var(--ui); padding: .38rem .8rem; border: 1px solid currentColor; border-radius: 99px; opacity: .85; }
.stone:hover .stone__more { opacity: 1; }
.stone__laurel { position: absolute; top: .55rem; left: 50%; transform: translateX(-50%); color: var(--brass-hi); }
.stone__laurel .i { width: 54px; height: 22px; }

.stone--vip { --face: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.9), transparent 55%), linear-gradient(115deg, transparent 40%, rgba(160,160,165,.22) 41%, transparent 43%), linear-gradient(60deg, transparent 62%, rgba(150,150,158,.18) 63%, transparent 66%), linear-gradient(170deg, #F6F5F1, #E2E0D9);
  --edge: #BDB9AE; --carve-c: #5A4520; --carve-hi: rgba(255,255,255,.8); --frame: var(--brass-hi); }
.stone--vip .stone__face { box-shadow: inset 0 0 0 2px rgba(201,163,90,.55), inset 0 -18px 30px rgba(0,0,0,.06), 0 1px 0 var(--edge), 0 18px 24px -18px rgba(20,22,30,.45); }
.stone--vip .stone__plinth { background: linear-gradient(#E0DED6, #C9C6BC); }
.stone--vvip { --face: radial-gradient(ellipse at 30% 15%, rgba(255,255,255,.08), transparent 50%), radial-gradient(circle at 70% 70%, rgba(255,255,255,.03) 0 1px, transparent 1px) 0 0/7px 7px, linear-gradient(170deg, #2E313A, #1B1D24);
  --edge: #0F1015; --carve-c: #D9B86A; --carve-hi: rgba(0,0,0,.6); --frame: #C9A35A; }
.stone--vvip .stone__face { box-shadow: inset 0 0 0 1px rgba(217,184,106,.45), inset 0 -20px 30px rgba(0,0,0,.35), 0 1px 0 var(--edge), 0 20px 26px -16px rgba(10,10,15,.7); }
.stone--vvip .stone__face::after { border-color: rgba(217,184,106,.35); }
.stone--vvip .stone__plinth { background: linear-gradient(#26282F, #15161B); }
.stone--vvip .stone__name, .stone--vvip .stone__titles, .stone--vvip .stone__years { text-shadow: 0 -1px 0 rgba(0,0,0,.7), 0 0 12px rgba(217,184,106,.15); }
.stone--legend { --face: radial-gradient(ellipse at 30% 15%, rgba(255,230,180,.22), transparent 55%), radial-gradient(ellipse at 80% 90%, rgba(70,110,90,.25), transparent 50%), linear-gradient(170deg, #8A6038, #5C3D22);
  --edge: #3E2814; --carve-c: #F1D28C; --carve-hi: rgba(40,20,5,.6); --frame: #E2BD72; }
.stone--legend .stone__face { padding-top: 2.1rem; box-shadow: inset 0 0 0 1px rgba(241,210,140,.5), inset 0 -20px 30px rgba(0,0,0,.3), 0 1px 0 var(--edge), 0 20px 26px -16px rgba(30,15,5,.7); }
.stone--legend .stone__face::after { border-color: rgba(241,210,140,.35); }
.stone--legend .stone__plinth { background: linear-gradient(#5A3C22, #3C2715); }
.stone--legend .stone__name, .stone--legend .stone__titles, .stone--legend .stone__years { text-shadow: 0 -1px 0 rgba(30,15,5,.7); }
.stone--large { width: min(300px, 70vw); }
.stone--large .stone__name { font-size: 1.35rem; }
.stone--large .stone__titles { font-size: .78rem; }
.stone--large .stone__years { font-size: 1rem; }
.stone--large .stone__more { font-size: .85rem; }

.stone__counts { display: flex; gap: .8rem; justify-content: center; margin-top: .55rem; font: 500 .74rem var(--ui); opacity: .85; }
.stone__counts > span { display: inline-flex; align-items: center; gap: .25rem; }
.stone__counts .i { width: 1em; height: 1em; }
.stone--large .stone__counts { font-size: .85rem; }

/* ---------- Home ---------- */
.hero { background: radial-gradient(ellipse 60% 70% at 78% 30%, rgba(201,163,90,.13), transparent 70%), var(--ink); color: #EDEAE2; overflow: hidden; }
.hero__in { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.25rem 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; max-width: 13ch; color: #F6F3EC; }
.hero__lede { font-size: 1.2rem; color: #C9C6BE; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero__copy { padding-bottom: 4rem; }
.search { display: flex; max-width: 440px; }
.search input { flex: 1; min-width: 0; font: 1rem var(--ui); padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.2); border-right: 0; background: rgba(255,255,255,.06); color: #fff; border-radius: var(--r) 0 0 var(--r); }
.search input::placeholder { color: #A9A7A0; }
.search .btn { border-radius: 0 var(--r) var(--r) 0; --bg: var(--brass); }
.hero__stats { margin-top: 1.25rem; font: .88rem var(--ui); color: #9F9D96; }
.hero__stone { position: relative; display: flex; justify-content: center; padding-top: 1rem; }
.hero__stone .stone { position: relative; z-index: 1; margin-bottom: 2.4rem; animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero__ground { position: absolute; left: -40%; right: -40%; bottom: 0; height: 3.4rem; background: linear-gradient(#36402F, #283022); border-top: 1px solid #4A5640; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; gap: 0; padding-top: 2.5rem; }
  .hero__copy { padding-bottom: 2rem; }
}

.lawns { padding-top: 0; }
.lawn { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.25rem 1rem; }
.lawn__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: 1.5rem; }
.lawn__head h2 { margin: 0 0 .2rem; }
.lawn__head p { margin: 0; color: var(--muted); max-width: 60ch; }
.lawn__all { font: 500 .92rem var(--ui); white-space: nowrap; }
.lawn__row { display: flex; gap: 1.6rem; overflow-x: auto; padding: .5rem .25rem 1.75rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.lawn__row > .stone { scroll-snap-align: start; }
.lawn__empty { color: var(--muted); }
.lawn--legend { max-width: none; background: linear-gradient(#2B231B, #3A2E22); color: #EADFCB; padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2 + 1.25rem)); padding-right: max(1.25rem, calc((100vw - var(--wrap)) / 2 + 1.25rem)); padding-bottom: 1.5rem; }
.lawn--legend .lawn__head { border-color: rgba(234,223,203,.18); }
.lawn--legend .lawn__head p { color: #BFB29C; }
.lawn--legend a.lawn__all { color: #F1D28C; }
.lawn--legend .lawn__empty { color: #BFB29C; }
.lawn--legend .lawn__empty a { color: #F1D28C; }

.explain { background: var(--paper); margin-top: 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.explain__in { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 1.25rem; }
.explain__steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.explain__steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 1rem; }
.explain__steps li::before { content: counter(s); font: 500 2.2rem/1 var(--carve); color: var(--brass); display: block; margin-bottom: .6rem; }
.explain__steps h3 { font-size: 1.2rem; }
@media (max-width: 760px) { .explain__steps { grid-template-columns: 1fr; } }

/* ---------- Generic pages ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem; }
.page__head { margin-bottom: 1.5rem; }
.narrow { max-width: 620px; margin: 0 auto; padding: 3rem 1.25rem; }
.prose-page { max-width: 820px; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose--box { background: var(--paper); border: 1px solid var(--line); padding: 1.25rem 1.5rem; border-radius: var(--r); max-width: none; }
.prose-page > h2 { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.crumb { font: .9rem var(--ui); margin-bottom: 1rem; }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 2.5rem 1.5rem; text-align: center; background: rgba(255,255,255,.3); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin: 1.5rem 0; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; border-bottom: 1px solid var(--line); margin-top: 1rem; font: 500 .95rem var(--ui); }
.tabs a { text-decoration: none; padding: .6rem 0; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--brass); }
.toc { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font: .92rem var(--ui); padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; font-family: var(--ui); }
.filters input, .filters select { font: .95rem var(--ui); padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.filters .check { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; }
.stone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 2.2rem 1.6rem; justify-items: center; margin: 1.5rem 0; }
.stone-grid .stone { width: 100%; max-width: 210px; }
.pager { display: flex; gap: .4rem; justify-content: center; font: .95rem var(--ui); margin: 2rem 0; }
.pager a, .pager span { min-width: 2.3rem; text-align: center; padding: .4rem .6rem; border-radius: var(--r); text-decoration: none; }
.pager a { border: 1px solid var(--line); }
.pager [aria-current] { background: var(--ink); color: #fff; }

/* ---------- Stats & chips ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 1.25rem 0; }
.stat { background: var(--paper); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.stat__n { font: 500 1.55rem/1.1 var(--serif); }
.stat__l { font: .85rem var(--ui); color: var(--muted); }
.stat__note { font: .78rem var(--ui); color: var(--muted); }
.stats--sm .stat__n { font-size: 1.2rem; }
.chip { display: inline-block; font: 600 .74rem/1 var(--ui); padding: .35rem .55rem; border-radius: 99px; background: #E7E4DA; color: var(--ink-2); white-space: nowrap; }
.chip--ok { background: #DCE7DB; color: #2F5537; }
.chip--warn { background: #F1E5C6; color: #6E4F10; }
.chip--info { background: #DDE2EE; color: #2D3A63; }
.chip--error { background: #F1DAD3; color: #7A2F1E; }
.callout { border-left: 3px solid var(--brass); background: var(--paper); padding: .9rem 1.1rem; margin: 1rem 0; border-radius: 0 var(--r) var(--r) 0; font-family: var(--ui); font-size: .95rem; }
.callout p:last-child { margin: 0; }
.callout--warn { border-color: var(--warn); }
.callout--info { border-color: #3F5191; }
.callout--error { border-color: var(--laterite); }
.notice { font: .88rem var(--ui); background: #F1E8CF; padding: .75rem 1rem; border-radius: var(--r); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font: .92rem/1.45 var(--ui); background: var(--paper); border: 1px solid var(--line); margin: .75rem 0 1.5rem; }
.table th, .table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-weight: 600; font-size: .82rem; color: var(--muted); background: #ECECE6; }
.table--kv th { width: 34%; font-weight: 500; color: var(--muted); }
.table .avatar { width: 40px; height: 48px; object-fit: cover; border-radius: 50%; }
@media (max-width: 760px) { .table { display: block; overflow-x: auto; } }

/* ---------- Forms ---------- */
.form .field, .field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; font-family: var(--ui); }
.field > span { font-weight: 500; font-size: .92rem; }
.field small { color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea, .repeat input, .stack-form input, .inline-form select {
  font: 1rem/1.4 var(--ui); padding: .7rem .8rem; border: 1px solid #B5B8AF; border-radius: var(--r); background: #FBFBF8; color: var(--ink); width: 100%; }
.field textarea { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid rgba(148,116,58,.35); outline-offset: 0; }
.field input[type=file] { padding: .55rem; background: transparent; border-style: dashed; }
.field-error { color: var(--laterite) !important; font-weight: 500; }
.form-error { background: #F4DFD8; color: #6E2817; padding: .8rem 1rem; border-radius: var(--r); font: 500 .95rem var(--ui); }
.check { display: flex; gap: .65rem; align-items: flex-start; font: .95rem/1.5 var(--ui); margin: 1rem 0; }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--ink); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.thumb { width: 96px; border-radius: var(--r); margin-top: .5rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .75rem; margin: .5rem 0 1rem; }
.thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r); }
.thumbs__item { display: flex; flex-direction: column; gap: .3rem; font: .82rem var(--ui); }

.auth { max-width: 980px; margin: 0 auto; padding: 3.5rem 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.auth__aside p { color: var(--ink-2); font-size: 1.15rem; max-width: 38ch; }
@media (max-width: 760px) { .auth { grid-template-columns: 1fr; gap: 1rem; padding-top: 2rem; } }

.form-page { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem; }
.form-page__head { max-width: 760px; margin-bottom: 2rem; }
.form-page__head p { font-size: 1.1rem; color: var(--ink-2); }
.memorial-form { display: grid; grid-template-columns: 210px 1fr; gap: 2.5rem; align-items: start; }
.steps-nav { position: sticky; top: 1rem; list-style: none; margin: 0; padding: 0; counter-reset: step; font: 500 .92rem var(--ui); border-left: 1px solid var(--line); }
.steps-nav li { counter-increment: step; }
.steps-nav li[hidden] { display: none; }
.steps-nav a { display: block; padding: .5rem 0 .5rem 1rem; text-decoration: none; color: var(--muted); }
.steps-nav a::before { content: counter(step) '. '; color: var(--brass); }
.steps-nav a:hover { color: var(--ink); }
.form-sections { min-width: 0; }
.form-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; margin-bottom: 1.5rem; scroll-margin-top: 1rem; }
.form-section > h2 { font-size: 1.45rem; }
.form-section--submit { background: transparent; border: 0; padding: 0; }
.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.age-preview { font: 500 .95rem var(--ui); color: var(--brass); margin: -.25rem 0 1rem; min-height: 1em; }
@media (max-width: 900px) { .memorial-form { grid-template-columns: 1fr; } .steps-nav { display: none; } }

.tier-pick { border: 0; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tier { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: #FBFBF8; cursor: pointer; font-family: var(--ui); }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.tier:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.tier__head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tier__name { font: 600 1.05rem var(--carve); letter-spacing: .05em; }
.tier__price { font: 500 1.15rem var(--serif); }
.tier__note { font-size: .82rem; color: var(--muted); }
.tier ul { margin: .5rem 0 0; padding-left: 1.1em; font-size: .86rem; color: var(--ink-2); }
.tier ul li { margin-bottom: .2rem; }
.tier--vip { background: linear-gradient(170deg, #FFFFFF, #F1EFE9); }
.tier--vip .tier__name { color: #7A5B22; }
.tier--vvip { background: linear-gradient(170deg, #2C2F38, #1C1E25); color: #E9E2D2; border-color: #2C2F38; }
.tier--vvip .tier__name { color: #D9B86A; }
.tier--vvip .tier__note, .tier--vvip ul { color: #BDB6A6; }
.tier--vvip:has(input:checked) { box-shadow: 0 0 0 2px #D9B86A; }
@media (max-width: 760px) { .tier-pick { grid-template-columns: 1fr; } }

.tones { display: grid; gap: .5rem; margin-bottom: 1rem; }
.tone { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r); background: #FBFBF8; cursor: pointer; font-family: var(--ui); }
.tone input { accent-color: var(--ink); }
.tone:has(input:checked) { border-color: var(--ink); }
.tone__body { flex: 1; display: flex; flex-direction: column; }
.tone__title { font-weight: 500; }
.tone__desc { font-size: .84rem; color: var(--muted); }
.tone__play { background: var(--ink); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.repeat { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.repeat__row { display: grid; gap: .5rem; }
.repeat__row--tl { grid-template-columns: 90px 1fr; }
.repeat__row--ev { grid-template-columns: 1.2fr .9fr .7fr 1.6fr; }
@media (max-width: 760px) { .repeat__row--ev { grid-template-columns: 1fr 1fr; } }
.repeat input { padding: .55rem .7rem; font-size: .92rem; }

/* ---------- Memorial page ---------- */
.memorial-hero { --bg: var(--ground-deep); --hfg: var(--ink); --soft: var(--muted); background: var(--bg); color: var(--hfg); border-bottom: 1px solid var(--line); }
.memorial-hero__in { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.25rem; display: grid; grid-template-columns: minmax(280px, 380px) 1fr; grid-template-rows: auto 1fr; gap: 1rem 3.5rem; }
.headstone { --face: linear-gradient(170deg, #B3B6B1, #8E928D); --carve-c: #33373D; --carve-hi: rgba(255,255,255,.35); --frame: #8E918D;
  grid-row: 1 / span 2; position: relative; background: var(--face); color: var(--carve-c); text-align: center; padding: 2.4rem 1.8rem 2rem;
  border-radius: 50% 50% 6px 6px / 20% 20% 6px 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -26px 40px rgba(0,0,0,.14), 0 28px 34px -24px rgba(15,17,25,.6); }
.headstone::after { content: ''; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid rgba(255,255,255,.2); pointer-events: none; }
.headstone__photo { width: 60%; margin: 0 auto 1.2rem; aspect-ratio: 4 / 5; border-radius: 50%; overflow: hidden; border: 4px solid var(--frame); box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 6px 14px rgba(0,0,0,.3); }
.headstone__photo img { width: 100%; height: 100%; object-fit: cover; }
.headstone__titles { font: 500 .85rem var(--carve); letter-spacing: .14em; margin: 0 0 .2rem; text-shadow: 0 1px 0 var(--carve-hi); }
.headstone__name { font: 600 clamp(1.5rem, 3vw, 2rem)/1.15 var(--carve); letter-spacing: .03em; margin: 0 0 .35rem; text-shadow: 0 1px 0 var(--carve-hi); }
.headstone__aka { font-style: italic; margin: 0 0 .4rem; opacity: .85; }
.headstone__years { font: 500 1.05rem var(--carve); letter-spacing: .1em; margin: 0; text-shadow: 0 1px 0 var(--carve-hi); }
.headstone__epitaph { font-style: italic; font-size: 1.1rem; margin: 1rem auto 0; max-width: 26ch; line-height: 1.4; }
.headstone__laurel { position: absolute; top: .8rem; left: 50%; transform: translateX(-50%); color: #F1D28C; }
.headstone__laurel .i { width: 84px; height: 34px; }
.seal { display: inline-flex; gap: .4rem; align-items: center; font: 500 .78rem var(--ui); margin: 1.2rem 0 0; padding: .35rem .7rem; border: 1px solid currentColor; border-radius: 99px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; align-self: end; }
.facts div { border-top: 1px solid color-mix(in srgb, var(--hfg) 20%, transparent); padding-top: .6rem; }
.facts dt { font: .82rem var(--ui); color: var(--soft); }
.facts dd { margin: .1rem 0 0; font-size: 1.2rem; }
.memorial-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-self: start; margin-top: .5rem; }
.btn--candle { background: transparent; color: var(--hfg, var(--ink)); border-color: color-mix(in srgb, var(--hfg, var(--ink)) 45%, transparent); }
.btn--candle:hover { color: var(--hfg, var(--ink)); background: color-mix(in srgb, var(--hfg, var(--ink)) 8%, transparent); filter: none; }
.btn--candle .i { color: var(--brass-hi); }
.btn--candle .count { font-variant-numeric: tabular-nums; opacity: .75; }
.memorial-hero .btn--ghost-light { color: var(--hfg); border-color: color-mix(in srgb, var(--hfg) 45%, transparent); }
@media (max-width: 820px) {
  .memorial-hero__in { grid-template-columns: 1fr; padding-top: 2rem; }
  .headstone { grid-row: auto; max-width: 380px; margin: 0 auto; width: 100%; }
  .facts { margin-top: 1rem; }
}

.theme-vip .memorial-hero { --bg: #F6F5F1; }
.headstone--vip { --face: radial-gradient(ellipse at 30% 18%, #fff, transparent 55%), linear-gradient(115deg, transparent 38%, rgba(160,160,165,.2) 39%, transparent 41%), linear-gradient(60deg, transparent 60%, rgba(150,150,158,.16) 61%, transparent 64%), linear-gradient(170deg, #F7F6F2, #E1DFD8);
  --carve-c: #5A4520; --carve-hi: rgba(255,255,255,.8); --frame: var(--brass-hi); box-shadow: inset 0 0 0 2px rgba(201,163,90,.6), inset 0 -26px 40px rgba(0,0,0,.06), 0 28px 34px -24px rgba(15,17,25,.45); }
.theme-vvip .memorial-hero { --bg: #17181E; --hfg: #EDE6D6; --soft: #A9A291; border-color: #2B2D35; }
.headstone--vvip { --face: radial-gradient(ellipse at 30% 12%, rgba(255,255,255,.08), transparent 50%), linear-gradient(170deg, #30333C, #1B1D24); --carve-c: #DCBB6C; --carve-hi: rgba(0,0,0,.6); --frame: #C9A35A;
  box-shadow: inset 0 0 0 1px rgba(217,184,106,.5), inset 0 -26px 40px rgba(0,0,0,.35), 0 28px 34px -18px rgba(0,0,0,.85); }
.headstone--vvip::after { border-color: rgba(217,184,106,.35); }
.headstone--vvip .headstone__name { background: linear-gradient(100deg, #B8913E 20%, #F4DB9A 45%, #C9A35A 70%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.theme-legend .memorial-hero { --bg: #2A2119; --hfg: #F0E4CC; --soft: #BBA98A; border-color: #3B2E21; background: radial-gradient(ellipse 50% 70% at 25% 40%, rgba(226,189,114,.12), transparent 70%), #2A2119; }
.headstone--legend { --face: radial-gradient(ellipse at 30% 12%, rgba(255,230,180,.25), transparent 55%), radial-gradient(ellipse at 80% 90%, rgba(70,110,90,.25), transparent 50%), linear-gradient(170deg, #8F653B, #5A3C21);
  --carve-c: #F3D58F; --carve-hi: rgba(40,20,5,.6); --frame: #E2BD72; padding-top: 3.4rem; box-shadow: inset 0 0 0 1px rgba(241,210,140,.5), inset 0 -26px 40px rgba(0,0,0,.3), 0 28px 34px -18px rgba(0,0,0,.8); }

.memorial__body { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.memorial__side { position: sticky; top: 1rem; display: grid; gap: 1rem; }
@media (max-width: 900px) { .memorial__body { grid-template-columns: 1fr; } .memorial__side { position: static; } }
.mem-section { padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.mem-section:last-child { border-bottom: 0; }
.count-label { font: 500 .95rem var(--ui); color: var(--muted); vertical-align: middle; margin-left: .3rem; }
.mem-video { width: 100%; border-radius: var(--r); background: #000; aspect-ratio: 16 / 9; }
.gate { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; }
.side-card .h-sub { margin-top: 0; font-size: 1.05rem; }
.side-card--quiet { background: transparent; font-size: .98rem; }
.preview-bar { margin: 0; background: #F1E5C6; color: #5A410E; font: 500 .9rem var(--ui); text-align: center; padding: .55rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.gallery__item { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(12,13,18,.92); display: grid; place-items: center; z-index: 60; padding: 1.5rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 92vw; object-fit: contain; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox__close .i { width: 32px; height: 32px; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 3.55rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 3.1rem 1fr; gap: 1.6rem; padding: .55rem 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 3.3rem; top: 1.05rem; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.timeline__y { font: 600 .95rem var(--carve); color: var(--brass); padding-top: .1rem; }

.events { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
.event { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.event__date { font: .8rem/1.2 var(--ui); color: var(--muted); text-align: center; border-right: 1px solid var(--line); padding-right: .8rem; }
.event__date strong { display: block; font: 500 1.7rem/1 var(--serif); color: var(--ink); }
.event__body { display: flex; flex-direction: column; gap: .15rem; }
.event__body span { color: var(--ink-2); font-size: .98rem; }

.tributes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.tribute { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem 1rem; scroll-margin-top: 1rem; }
.tribute:target { box-shadow: 0 0 0 2px var(--brass); }
.tribute blockquote { margin: 0 0 .9rem; font-size: 1.08rem; }
.tribute blockquote p:last-child { margin: 0; }
.tribute footer { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font: .88rem var(--ui); color: var(--muted); }
.tribute footer strong { color: var(--ink); font-weight: 600; }
.tribute__share { margin-top: .8rem; font: .85rem var(--ui); }
.tribute__share summary { cursor: pointer; color: var(--muted); width: max-content; }
.tribute__share .share { margin-top: .6rem; }
.tribute-form .split-note { font: .9rem var(--ui); background: #ECEBE4; border-radius: var(--r); padding: .9rem 1rem; margin-bottom: 1rem; }
.split-note p { margin: 0 0 .3rem; }
.split-note ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }

.share { display: flex; flex-wrap: wrap; gap: .5rem; }
.share__btn { display: inline-flex; align-items: center; gap: .4rem; font: 500 .85rem var(--ui); padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--r); background: #FBFBF8; color: var(--ink); text-decoration: none; cursor: pointer; }
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__btn--wa { background: #1F7A4D; border-color: #1F7A4D; color: #fff; }
.share__btn--wa:hover { color: #fff; filter: brightness(1.08); }
.share--compact .share__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.share--compact .share__btn--wa span { position: static; width: auto; height: auto; clip: auto; }

.tribute-solo { text-align: center; }
.tribute-solo__who { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; text-align: left; margin-bottom: 2rem; }
.tribute-solo__who img { width: 64px; height: 80px; object-fit: cover; border-radius: 50%; border: 3px solid var(--brass-hi); }
.tribute-solo__who span span { display: block; font: .9rem var(--carve); color: var(--muted); }
.tribute-solo__quote { font-size: 1.35rem; line-height: 1.55; margin: 0 0 1rem; font-style: italic; }
.tribute-solo__by { font: 500 1rem var(--ui); color: var(--muted); margin-bottom: 1.5rem; }
.tribute-solo .share { justify-content: center; margin-bottom: 1.5rem; }

/* ---------- Flowers ---------- */
.facts__counts { grid-column: 1 / -1; }
.facts__counts dd { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.facts__counts a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.facts__counts a:hover { color: var(--brass-hi); }
.facts__counts .i { color: var(--brass-hi); width: 1.3em; height: 1.3em; }
.flowers { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.flower-item { display: grid; grid-template-columns: 54px 1fr; gap: .8rem; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem .9rem; }
.flower-item__art svg { width: 54px; height: 76px; display: block; }
.flower-item__who { margin: 0 0 .25rem; font: .92rem/1.4 var(--ui); }
.flower-item__note { margin: 0 0 .35rem; font-size: .98rem; font-style: italic; overflow-wrap: anywhere; }
.flower-item time { font: .78rem var(--ui); color: var(--muted); }
.lay-flower { margin-top: 1rem; }
.flower-pick { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.flower-pick legend { font: 500 .92rem var(--ui); margin-bottom: .5rem; }
.flower-opt { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: .7rem .5rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: #FBFBF8; cursor: pointer; font-family: var(--ui); }
.flower-opt input { position: absolute; opacity: 0; pointer-events: none; }
.flower-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.flower-opt:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.flower-opt__art { width: 64px; height: 90px; }
.flower-opt__name { font-weight: 600; font-size: .86rem; }
.flower-opt__meaning { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.flower-form .split-note, .tribute-form .split-note { font: .9rem var(--ui); background: #ECEBE4; border-radius: var(--r); padding: .9rem 1rem; margin-bottom: 1rem; }
.flower-card-page { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem; display: grid; grid-template-columns: minmax(0, 540px) 1fr; gap: 3rem; align-items: start; }
.flower-card-page__card img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 30px 50px -30px rgba(15,17,25,.7); }
.flower-note { font-size: 1.15rem; font-style: italic; border-left: 2px solid var(--brass); margin: 0 0 1.5rem; padding-left: 1rem; overflow-wrap: anywhere; }
@media (max-width: 860px) { .flower-card-page { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Search ---------- */
.hero__more { margin: .7rem 0 0; font: .92rem var(--ui); }
.hero__more a { color: #D9D3C4; text-decoration-color: var(--brass-hi); }
.hero__more a:hover { color: #fff; }
.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-top: 1.75rem; scroll-margin-top: 1rem; }
.search-layout__filters { position: sticky; top: 1rem; }
.search-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; font-family: var(--ui); display: grid; gap: 1.1rem; }
.search-panel label > span, .search-panel__name > label, .search-panel legend { display: block; font-weight: 500; font-size: .86rem; margin-bottom: .35rem; color: var(--ink-2); }
.search-panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.search-panel legend { padding: 0; }
.search-panel__place legend { margin-bottom: .6rem; font-size: .95rem; color: var(--ink); }
.search-panel__group > legend { font-size: .95rem; color: var(--ink); }
.search-panel[hidden] { display: none; }
.filter-toggle { display: none; width: 100%; justify-content: center; }
.search-panel input, .search-panel select { width: 100%; font: .95rem var(--ui); padding: .6rem .7rem; border: 1px solid #B5B8AF; border-radius: var(--r); background: #FBFBF8; color: var(--ink); }
.search-panel input:focus, .search-panel select:focus { border-color: var(--ink); outline: 2px solid rgba(148,116,58,.35); outline-offset: 0; }
.search-panel__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; }
.search-panel__row--3 { grid-template-columns: 1fr; gap: .7rem; }
.search-panel__foot { display: grid; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.search-panel__foot .btn { width: 100%; }
.suggest { position: relative; }
.suggest__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .3rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 30px -12px rgba(20,22,30,.35); max-height: 22rem; overflow: auto; }
.suggest__list li { display: flex; gap: .65rem; align-items: center; padding: .45rem .5rem; border-radius: 3px; cursor: pointer; }
.suggest__list li[aria-selected="true"], .suggest__list li:hover { background: #EEEDE6; }
.suggest__list img { width: 34px; height: 42px; object-fit: cover; border-radius: 50%; flex: none; }
.suggest__list strong { display: block; font-weight: 600; font-size: .9rem; }
.suggest__list small { display: block; color: var(--muted); font-size: .78rem; }
.suggest__all { font-size: .85rem; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: .2rem; border-radius: 0 !important; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .9rem; font-family: var(--ui); }
.chip-filter { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .45rem .35rem .75rem; border-radius: 99px; background: var(--ink); color: #F2EFE7; text-decoration: none; font-size: .85rem; font-weight: 500; }
.chip-filter:hover { background: var(--ink-2); color: #fff; }
.chip-filter .i { width: .95em; height: .95em; opacity: .8; }
.chips__clear { font-size: .85rem; margin-left: .25rem; }
.result-count { font: .95rem var(--ui); color: var(--muted); margin: 0 0 1rem; }
.search-layout__results .stone-grid { margin-top: .5rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.empty--search { text-align: left; }
.empty__tips { padding-left: 1.1em; margin: .25rem 0 1rem; font-size: 1rem; }
.empty__tips li { margin-bottom: .3rem; }
.fact-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brass-hi) 70%, transparent); text-underline-offset: 3px; }
.fact-link:hover { color: var(--brass-hi); }
@media (max-width: 960px) {
  .search-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .filter-toggle { display: inline-flex; margin-bottom: .75rem; }
  .search-layout__filters { position: static; }
  .search-panel__row--3 { grid-template-columns: 1fr 1fr; }
  .search-panel__row--3 > label:first-child { grid-column: 1 / -1; }
  .search-panel__foot { grid-template-columns: 1fr auto; align-items: end; }
  .search-panel__foot .btn { width: auto; }
}
@media (max-width: 480px) {
  .search-layout__results .stone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .9rem; }
  .search-layout__results .stone__face { padding: 1.1rem .6rem .9rem; }
  .search-layout__results .stone__name { font-size: .88rem; }
  .search-panel__row--3 { grid-template-columns: 1fr; }
  .search-panel__foot { grid-template-columns: 1fr; }
  .search-panel__foot .btn { width: 100%; }
}

/* ---------- Pricing / how it works ---------- */
.price-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.25rem 0; }
.price-col { border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; background: var(--paper); display: flex; flex-direction: column; }
.price-col h3 { font: 600 1.15rem var(--carve); letter-spacing: .05em; }
.price-col__fee { font-size: 1.8rem; margin: 0; line-height: 1.1; }
.price-col__fee span { display: block; font: .8rem var(--ui); color: var(--muted); margin-top: .2rem; }
.price-col__trib { font: 500 .9rem var(--ui); margin: .75rem 0 0; }
.price-col ul { font-size: .95rem; padding-left: 1.1em; flex: 1; }
.price-col--vip { background: linear-gradient(170deg, #fff, #F1EFE9); }
.price-col--vvip { background: linear-gradient(170deg, #2C2F38, #1C1E25); color: #E9E2D2; border-color: #1C1E25; }
.price-col--vvip h3 { color: #D9B86A; }
.price-col--vvip .price-col__fee span { color: #A9A291; }
.price-col--vvip .btn--ghost { color: #E9E2D2; border-color: #E9E2D2; }
@media (max-width: 760px) { .price-table { grid-template-columns: 1fr; } }
.split-graphic { display: flex; height: 3.4rem; border-radius: var(--r); overflow: hidden; margin: 1.25rem 0; font: .9rem var(--ui); color: #fff; max-width: 680px; }
.split-graphic__part { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: 0 .5rem; white-space: nowrap; }
.split-graphic__part--charity { background: var(--moss); }
.split-graphic__part--family { background: var(--brass); }
.split-graphic__part--platform { background: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.08rem; }
.faq details p { margin: .6rem 0 0; color: var(--ink-2); }
.partners { list-style: none; padding: 0; display: grid; gap: 1rem; }
.partners li { display: flex; flex-direction: column; border-left: 2px solid var(--moss); padding-left: 1rem; }
.partners p { margin: .3rem 0 0; }

/* ---------- Account ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.mem-list { display: grid; gap: .6rem; margin-top: 1rem; }
.mem-row { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.mem-row:hover { border-color: var(--ink); color: var(--ink); }
.mem-row img { width: 44px; height: 54px; object-fit: cover; border-radius: 50%; }
.mem-row__main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mem-row__main .muted { font: .85rem var(--ui); }
.manage { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.manage__title { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.manage__title h1 { margin: 0; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.upgrade__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.upgrade__opt { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; background: var(--paper); font-family: var(--ui); }
.upgrade__opt p { margin: 0 0 .5rem; }
.trib-admin { list-style: none; padding: 0; margin: 0; }
.trib-admin li { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.trib-admin li p { margin: 0 0 .4rem; }
@media (max-width: 760px) { .manage { grid-template-columns: 1fr; } .manage__stone { display: flex; justify-content: center; } }
.checkout { text-align: center; }
.checkout__label { font: 500 .95rem var(--ui); color: var(--muted); margin: 0; }
.checkout__amount { font-size: 2.6rem; margin: .2rem 0; }
.error-page { text-align: center; }
.error-page__code { font: 500 4rem/1 var(--carve); color: var(--brass); margin-bottom: .5rem; }

/* ---------- Admin ---------- */
.page-admin { font-family: var(--ui); font-size: .95rem; }
.page-admin .site-foot { margin-top: 0; }
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 80vh; }
.admin__nav { background: #ECECE6; border-right: 1px solid var(--line); padding: 1.5rem .75rem; display: flex; flex-direction: column; gap: .15rem; }
.admin__nav a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.admin__nav a:hover { background: #E0E0D8; color: var(--ink); }
.admin__nav a[aria-current] { background: var(--ink); color: #fff; }
.badge { background: var(--laterite); color: #fff; font-size: .72rem; padding: .1rem .45rem; border-radius: 99px; }
.admin__main { padding: 2rem 2.25rem; min-width: 0; max-width: 1200px; }
.admin__main h1 { font-family: var(--serif); font-size: 2rem; }
.todo { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.todo a { padding: .7rem 1rem; background: #F4E8D9; border: 1px solid #E3CFB3; border-radius: var(--r); text-decoration: none; }
.chart { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; }
.chart__title { font-weight: 500; margin: 0 0 .8rem; }
.chart__bars { display: flex; align-items: end; gap: 3px; height: 140px; border-bottom: 1px solid var(--line); }
.chart__bar { flex: 1; background: var(--brass); border-radius: 2px 2px 0 0; min-height: 2px; }
.chart__bar:hover { background: var(--ink); }
.chart__axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); padding-top: .4rem; }
.review { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; margin: 1.25rem 0; }
.review__docs .h-sub:first-child { margin-top: 0; }
.doc-img { max-width: 100%; max-height: 320px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.doc-link { display: inline-flex; gap: .4rem; align-items: center; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1.25rem 0; padding: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.admin-actions form { margin: 0; }
.stack-form { display: flex; flex-direction: column; gap: .4rem; }
.stack-form .field { margin: 0; min-width: 300px; }
.inline-form { display: flex; gap: .5rem; align-items: center; }
.inline-form select { width: auto; padding: .5rem; }
.inline-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.narrow-form { max-width: 640px; margin: 1.5rem 0; }
.table td input[type=number] { width: 130px; padding: .45rem; font: inherit; border: 1px solid #B5B8AF; border-radius: var(--r); }
.diff td { width: 40%; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin__nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: .5rem; }
  .admin__nav a { white-space: nowrap; }
  .admin__main { padding: 1.5rem 1rem; }
  .review { grid-template-columns: 1fr; }
  .stack-form .field { min-width: 0; }
}

/* ---------- Programme (print) ---------- */
.programme { max-width: 760px; margin: 0 auto; padding: 2rem 1.25rem; }
.programme__cover { text-align: center; padding: 2.5rem 1.5rem; border: 1px solid var(--line); background: var(--paper); margin-bottom: 2rem; }
.programme__cover img { width: 200px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50%; margin: 1rem auto; border: 4px solid var(--brass-hi); }
.programme__intro { font: italic 1.2rem var(--serif); color: var(--muted); }
.programme__titles { font: 500 .9rem var(--carve); letter-spacing: .14em; margin: 0; }
.programme h1 { font-family: var(--carve); font-weight: 600; }
.programme__years { font: 500 1rem var(--carve); letter-spacing: .06em; }
.programme__epitaph { font-style: italic; }
.programme section { margin-bottom: 2rem; }
.programme__foot { border-top: 1px solid var(--line); padding-top: 1rem; font: .85rem var(--ui); color: var(--muted); }
@media print {
  .site-head, .site-foot, .no-print, .demo-banner, .flash-stack { display: none !important; }
  body { background: #fff; }
  .programme__cover { border: 0; }
  .programme section { break-inside: avoid; }
}
