/* Centered sanctuary: dense discovery grid, full memorials on their detail pages. */
.centered-community .compact-owner { min-height: 60px; }
.compact-owner small.compact-updated { white-space: normal; overflow: visible; line-height: 1.35; }
.pending-photo { position: relative; }
.pending-photo button { position: absolute; top: 3px; right: 3px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.flash { display: flex; align-items: center; gap: 12px; }
[data-flash-dismiss] { margin-left: auto; padding: 6px; background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 1.3rem; }
.existing-photos { display: flex; flex-wrap: wrap; gap: 14px; }
.existing-photo { display: grid; gap: 8px; max-width: 130px; font-size: .8rem; }
.existing-photo img { width: 110px; height: 95px; object-fit: contain; border-radius: 12px; }
.existing-photo label { display: flex; align-items: center; gap: 7px; }
.existing-photo input { width: auto; }
.cover-replacement { display: grid; gap: 10px; margin: 20px 0; }
.compact-edit { color: var(--green-strong); }
.centered-community .language-picker select { width: 64px !important; }
.detail-summary .edit-link { display: inline-flex; margin-top: 18px; }
.centered-community .garden-welcome .garden-stats { padding: 0; border: 0; background: transparent; gap: 20px; }
.centered-community .garden-welcome .garden-stats strong { display: inline; font-size: .8rem; margin-right: 4px; }
.centered-community .garden-welcome .garden-stats span { font-size: .72rem; }
.centered-community .sidebar { display: none; }
.centered-community .app-shell { display: block; max-width: 1440px; margin: 0 auto; padding-top: 74px; }
.centered-community .main-content { grid-column: auto; padding: 28px 32px 70px; }
.centered-community .topbar { padding-inline: max(24px, calc((100vw - 1376px) / 2)); gap: 20px; }
.header-nav { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-left: 22px; margin-right: auto; }
.header-nav a { color: var(--text-soft); padding: 9px 14px; border-radius: 999px; }
.header-nav a.active { color: var(--green-strong); background: var(--surface-secondary); font-weight: 750; }
.header-logout { margin: 0; }
.garden-welcome { display: flex; flex-direction: column; text-align: center; align-items: center; gap: 12px; margin: 0 auto 24px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.garden-welcome .eyebrow { font-size: .65rem; margin-bottom: 8px; }
.garden-welcome h1 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin: 0; }
.garden-welcome p { margin: 8px 0 0; color: var(--text-soft); font-size: .82rem; }
.garden-stats { display: flex; flex: 0 0 auto; gap: 17px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.garden-stats span { display: grid; gap: 1px; font-size: .67rem; color: var(--text-soft); }
.garden-stats strong { color: var(--text); font-size: 1.1rem; font-weight: 700; }
.garden-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 26px; align-items: start; }
.garden-main { min-width: 0; }
.garden-toolbar { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.garden-toolbar .discovery-tabs { margin: 0; flex: 1 1 auto; border-radius: 12px; padding: 4px; gap: 2px; }
.garden-toolbar .discovery-tabs a { min-height: 37px; font-size: .76rem; border-radius: 9px; white-space: nowrap; padding: 7px 12px; }
.garden-toolbar .search-bar { margin: 0; flex: 0 1 330px; min-height: 47px; border-radius: 12px; font-size: .78rem; }
.search-bar button { border: 0; background: transparent; cursor: pointer; color: var(--green-strong); padding: 8px; }
.species-filters { display: flex; overflow-x: auto; gap: 8px; margin-bottom: 19px; padding-bottom: 4px; scrollbar-width: thin; }
.species-filters a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .72rem; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; min-height: 38px; }
.species-filters a.active { background: var(--green-strong); color: var(--bg); border-color: var(--green-strong); }
html[data-theme=dark] .species-filters a.active { color: #252d43; }
.garden-grid-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.garden-grid-heading h2 { font-family: inherit; font-size: .86rem; font-weight: 700; letter-spacing: 0; margin: 0; line-height: 1.5; }
.garden-grid-heading>span { font-size: .72rem; color: var(--text-soft); white-space: nowrap; }
.compact-memorial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.compact-memory { border-radius: 16px; box-shadow: 0 3px 14px rgba(30, 37, 58, .04); min-width: 0; display: flex; flex-direction: column; }
.compact-owner { display: flex; align-items: center; gap: 8px; padding: 9px 11px; min-height: 54px; }
.compact-owner .avatar { width: 30px; height: 30px; font-size: .75rem; }
.compact-owner>div { min-width: 0; display: grid; line-height: 1.4; }
.compact-owner>div a { font-size: .71rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-owner small { font-size: .62rem; color: var(--text-soft); }
.compact-photo-count { margin-left: auto; color: var(--text-soft); font-size: .65rem; white-space: nowrap; }
.compact-photo { display: grid; place-items: center; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-3); }
.compact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none; }
.profile-image { aspect-ratio: 1; background: var(--surface-3); }
.profile-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none; }
.compact-species { position: absolute; bottom: 9px; left: 9px; max-width: calc(100% - 18px); padding: 3px 8px; border-radius: 6px; font-size: .6rem; color: #fff; background: rgba(30,37,58,.7); backdrop-filter: blur(8px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.compact-copy { padding: 11px 12px 9px; flex: 1; min-width: 0; }
.compact-name { display: block; font-family: Georgia,serif; font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-date { font-size: .63rem; color: var(--text-soft); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.compact-copy p { font-size: .72rem; line-height: 1.6; color: var(--text-soft); margin: 8px 0 0; min-height: 2.3em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.compact-actions { display: flex; align-items: center; justify-content: space-around; padding: 0 7px 4px; border-top: 1px solid var(--line); gap: 3px; }
.compact-actions > * { flex: 1 1 0; min-width: 0; }
.compact-actions form { margin: 0; display: flex; }
.compact-actions .action-button { display: inline-grid; grid-template-rows: 22px 16px; gap: 3px; align-content: center; justify-items: center; align-items: center; min-height: 56px; min-width: 0; width: 100%; padding: 6px 2px; font-size: .75rem; }
.compact-actions .action-button > span { line-height: 16px; font-size: .75rem !important; }
.memorial-action-icon { display: block; width: 22px; height: 22px; grid-row: 1; }
.compact-actions .action-button span:first-child { font-size: 1rem; }
.compact-actions .action-button span:last-child { display: inline; }
.garden-aside { display: grid; gap: 16px; position: sticky; top: 94px; }
.garden-aside .aside-card { padding: 19px; border-radius: 18px; }
.garden-aside p { font-size: .77rem; }
.garden-invitation h3 { font-family: Georgia,serif; font-size: 1.2rem; margin: 6px 0 10px; }
.garden-invitation .button { font-size: .75rem; }
.garden-aside .popular-list a { padding: 9px 0; }
.garden-aside .popular-thumb { width: 36px; height: 36px; }
.garden-aside .popular-list strong { font-size: .76rem; }
.garden-aside .popular-list small { font-size: .65rem; }
.garden-home-link { color: var(--text-soft); font-size: .72rem; }
.garden-aside .aside-footnote { margin: 0; font-size: .7rem; }
.community-card h3{font-family:Georgia,serif;font-size:1.1rem;margin:0 0 12px}
.community-card p{line-height:1.6;color:var(--text-soft)}
.my-memory-row{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding:9px 0}
.my-memory-link{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.my-memory-link>span:last-child{min-width:0}.my-memory-link strong{display:block;overflow-wrap:anywhere;font-size:.76rem}
.my-memory-link small{display:block;color:var(--text-soft);font-size:.65rem}
.memory-edit,.community-card-actions,.community-card-more{font-size:.72rem}
.community-card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.community-card-more{display:inline-block;margin-top:12px}
.garden-aside{position:static}
.mobile-community-shortcuts{display:none}
.reminder-consent{display:flex;align-items:flex-start;gap:10px;margin-top:20px;font-size:.85rem}
.reminder-consent input{width:18px;min-height:18px;height:18px;margin:3px 0 0;flex:none}
.reminder-consent small{display:block;margin-top:6px;line-height:1.5}
.anniversary-caption{font-size:.8rem;color:var(--text-soft)}
@media(max-width:1100px){.mobile-community-shortcuts{display:flex;flex-wrap:wrap;gap:12px;font-size:.72rem;margin:0 0 16px}}
.centered-community :is(a,button,input,select):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media(min-width:1600px) { .compact-memorial-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media(max-width:1100px) { .garden-layout { grid-template-columns: 1fr; }.garden-aside { display: none; }.header-nav { gap: 17px; }.centered-community .main-content { padding-inline: 24px; }.garden-stats { gap: 13px; } }
@media(max-width:900px) { .header-nav { display: none; }.centered-community .topbar { gap: 12px; }.compact-memorial-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.garden-welcome { align-items: start; }.garden-stats { display: none; } }
@media(max-width:780px) { .centered-community .topbar { height: 64px; padding-inline: 16px; }.centered-community .app-shell { padding-top: 64px; }.centered-community .main-content { padding: 20px 16px 100px; }.header-create { display: none; }.header-logout .icon-button { width: 30px; }.garden-toolbar { flex-direction: column-reverse; align-items: stretch; gap: 12px; }.garden-toolbar .search-bar { flex-basis: auto; min-height: 44px; }.garden-welcome { margin-bottom: 18px; }.garden-welcome h1 { font-size: 1.8rem; }.garden-welcome p { font-size: .78rem; }.garden-welcome .eyebrow { font-size: .6rem; }.species-filters { gap: 7px; margin-bottom: 14px; }.species-filters a { padding: 8px 10px; }.garden-grid-heading h2 { font-size: .8rem; }.pagination { gap: 10px; }.pagination .button { font-size: .72rem; } }
@media(max-width:560px) { .compact-memorial-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }.compact-owner { padding: 8px; gap: 6px; min-height: 49px; }.compact-owner .avatar { width: 26px; height: 26px; font-size: .65rem; }.compact-owner>div a { font-size: .66rem; }.compact-owner small { font-size: .58rem; }.compact-copy { padding: 10px 10px 8px; }.compact-name { font-size: 1.12rem; }.compact-copy p { font-size: .68rem; }.compact-date { font-size: .58rem; }.compact-actions { padding-inline: 4px; gap: 0; }.compact-actions .action-button { padding-inline: 4px; }.garden-welcome h1 { font-size: 1.65rem; }.centered-community .brand span { font-size: 1rem; }.centered-community .brand img { width: 29px; height: 29px; }.centered-community .topbar-actions { gap: 5px; }.centered-community .language-picker select { width: 77px; }.centered-community .topbar { padding-inline: 12px; }.centered-community .main-content { padding-inline: 12px; } }
@media(min-width:361px) and (max-width:560px) { .centered-community .language-picker select { width: 90px; } }
@media(min-width:781px) and (max-width:900px) {
  .centered-community .main-content { padding-bottom: 100px; }
  .mobile-nav { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 9px; height: 68px; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-elevated); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
  .mobile-nav a { display: grid; place-items: center; gap: 1px; color: var(--text-soft); }
  .mobile-nav a.active { color: var(--green-strong); }
  .mobile-nav span { font-size: 1.18rem; }
  .mobile-nav small { font-size: .64rem; }
  .mobile-nav .mobile-create { width: 48px; height: 48px; place-self: center; border-radius: 50%; background: var(--green-strong); color: var(--bg); }
}
@media(max-width:360px) { .centered-community .brand img { display: none; }.compact-owner .avatar { display: none; }.compact-copy p { font-size: .66rem; }.compact-date { white-space: normal; line-height: 1.5; } }

/* The home introduction belongs inside the header, not above the feed. */
.garden-home .topbar { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; gap: 18px; }
.garden-home .header-nav { margin: 0; gap: 0; }
.garden-home .header-nav a { padding-inline: 10px; }
.header-message { min-width: 0; text-align: center; }
.header-message h1 { margin: 0; font-size: 1rem; line-height: 1.35; }
.header-message p { margin: 4px 0 0; font-size: .65rem; line-height: 1.4; color: var(--text-soft); }
@media(max-width:1450px) {
  .garden-home .topbar { height: 118px; grid-template-columns: auto 1fr auto; grid-template-rows: 64px 44px; gap: 0 18px; }
  .garden-home .topbar-actions { grid-column: 3; grid-row: 1; }
  .garden-home .header-message { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; align-items: baseline; gap: 14px; }
  .header-message p { margin: 0; }
  .garden-home .app-shell { padding-top: 118px; }
}
@media(max-width:900px) {
  .garden-home .topbar { grid-template-columns: auto 1fr; }
  .garden-home .topbar-actions { grid-column: 2; justify-self: end; }
}
@media(max-width:780px) {
  .garden-home .topbar { height: 142px; grid-template-rows: 64px 68px; gap: 0 8px; }
  .garden-home .header-message { display: block; align-self: center; max-width: 480px; justify-self: center; }
  .header-message h1 { font-size: .95rem; }
  .header-message p { margin-top: 5px; font-size: .65rem; }
  .garden-home .app-shell { padding-top: 142px; }
  .garden-home .flash-stack { top: 150px; }
}
