/* Image-led browsing and scannable plant information. */
#plant-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
#plant-grid .plant-card{border:0;border-radius:22px;overflow:hidden;background:#f4f7f3;box-shadow:0 3px 14px #173b2410}
.plant-card-photo{position:relative}
#plant-grid button.plant-visual{display:block;aspect-ratio:1;height:auto;min-height:0;background:#e5eddf}
#plant-grid .plant-visual img{width:100%;height:100%;object-fit:cover}
#plant-grid .plant-markers{position:absolute;bottom:10px;right:10px;gap:5px;margin:0;min-height:44px}
#plant-grid .favourite-button{background:white;border:0;box-shadow:0 2px 8px #0002;color:#355c43;width:44px;height:44px;padding:4px;border-radius:50%}
#plant-grid .favourite-button[aria-pressed=true]{color:#a03150;background:#fff0f3}
#plant-grid .in-garden-star{width:36px;height:36px;padding:0}
#plant-grid .plant-content{padding:16px 18px 20px;min-height:134px}
#plant-grid h3{margin:0 0 5px;font-size:1.16rem;line-height:1.25}
#plant-grid .plant-more-details{display:block;border:0;background:transparent;color:var(--text);font:inherit;font-weight:750;text-align:left;padding:0;margin:0;min-height:44px;width:100%;border-radius:4px}
#plant-grid .botanical{margin:0 0 7px;font-size:.84rem;color:#637167;line-height:1.4}
#plant-grid .plant-card-summary{margin:0;font-size:.9rem;line-height:1.4;color:#526155}
#plant-grid .plant-photo-credit{font-size:.7rem;margin-top:8px}
#plant-grid .plant-photo-credit summary{padding:4px 0;min-height:28px}
#plant-grid .empty-state{grid-column:1/-1}
.plant-profile-active .page-header{display:none}
.plant-profile-active{padding-bottom:calc(180px + env(safe-area-inset-bottom,0px))}
#plant-profile-view{max-width:820px;padding-top:14px}
#plant-profile-back{margin:0 0 12px;border-radius:999px;background:white}
#plant-profile-content{padding:0;border:0;border-radius:24px;background:white;overflow:visible}
#plant-profile-content .plant-profile-image{aspect-ratio:16/10;min-height:0;margin:0;border-radius:24px 24px 0 0;position:relative}
#plant-profile-content .plant-profile-image img{width:100%;height:100%;max-height:none;object-fit:contain;position:absolute;inset:0}
#plant-profile-content .profile-intro{position:relative;padding:24px 26px;background:white;border-radius:24px 24px 0 0;margin-top:-18px}
#plant-profile-title{font-size:clamp(1.7rem,5vw,2.5rem);line-height:1.18;margin:0 0 8px}
.profile-intro .botanical{margin:0 0 12px;color:#607365}
.profile-intro .plant-photo-credit{font-size:.8rem}
.profile-jumps{display:flex;gap:10px;overflow-x:auto;position:sticky;top:0;z-index:20;padding:14px 18px;background:#edf2ed;border-bottom:1px solid #dfe7df;scrollbar-width:thin}
.profile-jumps .profile-jump{flex:0 0 auto;border:1px solid transparent;border-radius:999px;background:white;padding:10px 18px;font-size:.95rem;font-weight:650;white-space:nowrap}
.profile-jumps .profile-jump[aria-current=true]{border-color:#355c43;color:#254e32;background:#e6f0e1}
.profile-section{padding:26px;border-bottom:10px solid #edf2ed;scroll-margin-top:90px}
.profile-section>h3{font-size:1.5rem;line-height:1.25;margin:0 0 22px}
#plant-profile-content .plant-facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#plant-profile-content .plant-facts>div{display:block;padding:18px;background:#f2f6f2;border:0;border-radius:16px;min-width:0}
#plant-profile-content .plant-facts dt{color:#617267;font-size:.92rem;font-weight:500;margin-bottom:5px}
#plant-profile-content .plant-facts dd{font-size:1.08rem;font-weight:650;margin:0;line-height:1.45}
#plant-profile-content .researched-facts{border:0;padding:0}
.profile-howto{border:1px solid #dbe5d8;border-radius:16px;margin-top:20px;padding:10px 18px}
.profile-howto summary{font-weight:650;color:#355c43;cursor:pointer}
#plant-profile-content .plant-profile-actions{position:fixed;z-index:90;bottom:calc(76px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(820px,100%);display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:12px 16px;background:#fffffffa;border-top:1px solid #e1e9df;box-shadow:0 -3px 18px #173b240b}
#plant-profile-content .plant-profile-actions button{border-radius:999px;min-height:48px;font-weight:700;margin:0;font-size:.95rem;padding:10px}
.plant-profile-active .plant-save-toast{bottom:calc(158px + env(safe-area-inset-bottom,0px))}
@media(max-width:800px){#plant-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#plant-grid .plant-content{padding:12px;min-height:132px}#plant-grid h3{font-size:1.02rem}#plant-grid .plant-card{border-radius:18px}#plant-grid .plant-markers{right:7px;bottom:7px}#plant-profile-content .profile-intro{padding:22px 18px}.profile-section{padding:24px 18px}#plant-profile-content .plant-facts{grid-template-columns:1fr}.profile-jumps{padding:12px;gap:8px}.profile-section>h3{font-size:1.35rem}}
@media(max-width:350px){#plant-grid{gap:10px}#plant-grid .plant-content{padding:10px}#plant-grid h3{font-size:.95rem}.profile-jumps .profile-jump{padding:9px 14px}}
@media(prefers-reduced-motion:reduce){.profile-jumps{scroll-behavior:auto}}

#plant-grid .plant-photo[hidden],#plant-profile-content .plant-photo[hidden]{display:none}
