/* Shared cards for showcases and the private/public profile library. */
.tp-community-card,.tp-profile-plans,.tp-cover-editor{--pc-ink:#172c24;--pc-muted:#64736c;--pc-line:#e0e7e2;--pc-paper:#fff;--pc-soft:#f3f7f4;--pc-accent:#225c45;color:var(--pc-ink)}
.tp-community-card.tp-plan-card{display:flex;flex-direction:column;border:1px solid var(--pc-line);border-radius:22px;background:var(--pc-paper);overflow:hidden;min-width:0;box-shadow:0 6px 24px #172c2409;animation:none;transition:box-shadow .2s}
.tp-community-card.tp-plan-card:hover{transform:none;box-shadow:0 10px 28px #172c2412}
.tp-community-card .tp-ico,.tp-cover-editor .tp-ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.tp-community-card__media{position:relative;aspect-ratio:16/10;isolation:isolate}
.tp-community-card__image-link{display:block;height:100%;color:#fff}
.tp-community-card__media img{display:block;width:100%;height:100%;object-fit:cover}
.tp-community-card__shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(transparent 55%,#12251c70)}
.tp-community-card__activity,.tp-community-card__official{position:absolute;left:16px;bottom:16px;display:flex;align-items:center;gap:7px;max-width:calc(100% - 32px);padding:8px 12px;border-radius:12px;background:#fff;color:#19392b;font-size:12px;font-weight:750;line-height:1.3}
.tp-community-card__official{top:16px;bottom:auto;background:#21583e;color:#fff}
.tp-community-card__save{position:absolute;top:12px;right:12px;width:44px;height:44px;border:1px solid #ffffff70;border-radius:50%;display:grid;place-items:center;background:#fffc;color:#213d30;cursor:pointer}
.tp-community-card__save[aria-pressed=true]{background:#f16b27;color:#fff}
.tp-community-card__save[aria-pressed=true] .tp-ico{fill:currentColor}
.tp-community-card__body{padding:20px;display:flex;flex:1;flex-direction:column;gap:14px;min-width:0}
.tp-community-card__body h3{margin:0;letter-spacing:-.025em;overflow-wrap:anywhere}
.tp-community-card__body h3 a{font-size:21px;font-weight:800;line-height:1.25;color:var(--pc-ink);text-decoration:none}
.tp-community-card__location{margin:0;display:flex;gap:6px;align-items:center;color:var(--pc-muted);font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.tp-community-card__metrics{margin:0;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:14px 10px;background:var(--pc-soft);border:1px solid var(--pc-line);border-radius:14px}
.tp-community-card__metrics div{display:grid;grid-template-columns:20px 1fr;column-gap:6px;align-content:start;min-width:0}
.tp-community-card__metrics .tp-ico{grid-row:1/3;color:#b46e46;margin-top:2px}
.tp-community-card__metrics dt{grid-column:2;color:var(--pc-muted);font-size:11px;line-height:1.4}
.tp-community-card__metrics dd{grid-column:2;margin:0;font-size:15px;line-height:1.4;font-weight:750;overflow-wrap:anywhere}
.tp-community-card__note{color:var(--pc-muted);font-size:11px;line-height:1.5;margin:0}
.tp-community-card__footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:14px;border-top:1px solid var(--pc-line)}
.tp-community-card__author{display:flex;align-items:center;gap:8px;min-width:0;color:var(--pc-ink);text-decoration:none;font-size:13px;font-weight:650}
.tp-community-card__author i{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--pc-soft);color:var(--pc-accent);font-style:normal}
.tp-community-card__author span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-community-card__open{flex:none;color:#b84312;font-size:13px;font-weight:750;text-decoration:none;display:flex;gap:8px}
.tp-community-card__tools,.tp-planner-social{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.tp-community-card__tools button,.tp-planner-social button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:6px 10px;border:1px solid var(--pc-line,#d8e2dc);border-radius:10px;font:inherit;font-size:12px;color:var(--pc-accent,#225c45);background:var(--pc-paper,#fff);cursor:pointer}
[data-planner-reaction=like][aria-pressed=true]{color:#c34325;background:#fff2eb;border-color:#f3c6b4}
[data-planner-reaction=like][aria-pressed=true] .tp-ico{fill:currentColor}
.tp-community-card button:disabled,.tp-cover-editor button:disabled{opacity:.55;cursor:wait}
.tp-community-card :is(a,button):focus-visible,.tp-cover-editor :is(input,button):focus-visible{outline:3px solid #f47a32;outline-offset:3px}
.tp-community-card__status{font-size:12px;color:#b84020;line-height:1.5;margin:0}
.tp-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tp-profile-plans{background:var(--pc-paper);border:1px solid var(--pc-line);border-radius:24px;padding:24px;margin-bottom:24px}
.tp-profile-plans>header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.tp-profile-plans>header p{font-size:11px;font-weight:750;color:#b84312;text-transform:uppercase;letter-spacing:.06em;margin:0 0 5px}
.tp-profile-plans h3{font-size:23px;font-weight:800;line-height:1.3;margin:0}
.tp-profile-plans>p,.tp-profile-plans__empty{color:var(--pc-muted);font-size:13px;line-height:1.6;margin:12px 0 20px}
.tp-profile-plans__section+.tp-profile-plans__section{margin-top:24px;padding-top:22px;border-top:1px solid var(--pc-line)}
.tp-profile-plans h4{font-size:15px;line-height:1.5;font-weight:750;margin:0 0 14px;display:flex;gap:10px;align-items:center}
.tp-profile-plans h4 span{font-size:12px;border-radius:20px;padding:2px 8px;background:var(--pc-soft)}
.tp-profile-plans__pages{display:flex;justify-content:space-between;gap:16px;font-size:13px;margin-top:16px}
.tp-profile-plans__pages a{min-height:44px;display:flex;align-items:center}
.tp-cover-editor{width:min(520px,calc(100% - 24px));max-height:90dvh;padding:24px;background:var(--pc-paper);border:1px solid var(--pc-line);border-radius:22px;overflow:auto;box-shadow:0 20px 80px #0003}
.tp-cover-editor::backdrop{background:#13291fe0}
.tp-cover-editor h2{font-size:22px;line-height:1.3;margin:0 0 10px;font-weight:800}
.tp-cover-editor p,.tp-cover-editor label{font-size:13px;line-height:1.6;color:var(--pc-muted)}
.tp-cover-editor img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;margin:12px 0;display:block}
.tp-cover-editor input{width:100%;padding:12px 0;min-height:44px}
.tp-cover-editor footer{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}
.tp-cover-editor button{min-height:44px;padding:10px 14px;border:1px solid var(--pc-line);border-radius:10px;background:var(--pc-soft);color:var(--pc-ink);font-weight:700;cursor:pointer}
.tp-cover-editor [type=submit]{background:var(--pc-accent);color:white}
.tp-cover-editor [data-cover-error]{color:#b84020}
[data-planner-owner-cover]{max-width:120px;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin-bottom:12px}
@media(max-width:600px){.tp-community-grid{grid-template-columns:1fr}.tp-profile-plans{padding:18px 14px;border-radius:18px}.tp-community-card__body{padding:18px}.tp-community-card__body h3 a{font-size:20px}.tp-community-card__metrics{gap:12px 8px}}
html.dark :is(.tp-community-card,.tp-profile-plans,.tp-cover-editor),[data-theme=dark] :is(.tp-community-card,.tp-profile-plans,.tp-cover-editor){--pc-ink:#ecf3ee;--pc-muted:#aebfb4;--pc-line:#35463c;--pc-paper:#1b2b23;--pc-soft:#263930;--pc-accent:#a8d7b9}
html.dark .tp-cover-editor [type=submit],[data-theme=dark] .tp-cover-editor [type=submit]{color:#15271d}
@media(prefers-reduced-motion:reduce){.tp-community-card.tp-plan-card{transition:none}}
