/* Discovery layout, built on Shrooms Social's existing theme variables. */
.explore-page .explore-main { padding: 28px 34px 60px; }
.explore-content { width: 100%; max-width: 1180px; margin: 0 auto; }
.explore-page .btn-login-nav,.explore-page .btn-signup-nav { white-space: nowrap; }
body.guest-mode [data-explore-section="reels"] .discovery-reels {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  opacity: 0.8;
  cursor: pointer;
}
.explore-intro { padding: 0 0 22px; }
.explore-demo-note { color: var(--text-muted); font-size: 11px; margin-bottom: 24px; }
.explore-intro h1 { color: var(--text-main); font-size: 29px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 6px; }
.explore-intro > p:last-child { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.explore-tabs { display: flex; border-bottom: 1px solid var(--border-light); gap: 18px; margin-bottom: 23px; overflow-y:hidden; scrollbar-width:none; }
.explore-tabs::-webkit-scrollbar,.discovery-reels::-webkit-scrollbar { display:none; }
.explore-tabs button { position: relative; min-height: 46px; padding: 10px 18px 15px; color: var(--text-secondary); font-size: 12px; font-weight: 700; white-space: nowrap; border-radius: 6px 6px 0 0; }
.explore-tabs button[aria-selected="true"] { color: var(--primary-light); }
.explore-tabs button[aria-selected="true"]::after { content: ''; position: absolute; height: 2px; background: var(--primary-light); inset: auto 0 -1px; }
.explore-tabs button:hover { background: var(--primary-tint); }
.explore-section { margin-bottom: 26px; }
.explore-section-heading { display: flex; align-items: baseline; justify-content: space-between; width:100%; gap: 12px; margin-bottom: 12px; }
.explore-section-heading h2 { margin:0; font-size: 15px; font-weight: 750; letter-spacing: -.25px; color: var(--text-main); }
.explore-section-heading > a { flex-shrink:0; margin:0; color: var(--primary-light); font-size: 11px; font-weight: 650; padding: 6px 0; white-space:nowrap; }
.explore-section-heading > a:hover,.recommend-link:hover { text-decoration: underline; }
.discovery-reels { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; scrollbar-width:none; }
.discovery-reel { min-width: 0; border: 1px solid var(--border-card); border-radius: 10px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.discovery-reel-media { position: relative; display: block; aspect-ratio: 3/4; border-radius: 9px 9px 0 0; overflow: hidden; background: var(--bg-subtle); }
.discovery-reel-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.discovery-reel-media::after { content: ''; position: absolute; inset: 35% 0 0; pointer-events: none; background: linear-gradient(transparent,#000c); }
.discovery-reel-media:hover > img { transform: scale(1.035); }
.discovery-duration { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 3px 5px; border-radius: 4px; color: #fff; background: #0009; font-size: 10px; font-weight: 650; }
.discovery-play { position: absolute; z-index: 1; top: 45%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #0007; border: 1px solid #ffffff40; color: white; }
.discovery-play svg { width: 20px; height: 20px; margin-left: 3px; }
.discovery-reel-media h3 { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 1; color: #fff; font-size: 12px; line-height: 1.4; font-weight: 700; }
.discovery-reel > footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px; }
.discovery-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.discovery-person > img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.discovery-person > span { min-width: 0; }
.discovery-person strong { display: block; font-size: 11px; font-weight: 650; color: var(--text-main); line-height: 1.4; }
.discovery-person small { display: block; font-size: 10px; color: var(--text-secondary); line-height: 1.4; }
.discovery-person:hover strong { color: var(--primary-light); }
.discovery-reel-open { width: 28px; height: 32px; display: grid; place-items: center; color: var(--text-muted); flex-shrink: 0; border-radius: 5px; }
.discovery-reel-open svg { width: 16px; height: 16px; }
.discovery-reel-open:hover { background: var(--bg-hover); color: var(--primary-light); }
.discovery-reel-options { position: relative; flex-shrink: 0; }
.discovery-reel-options summary { display: grid; place-items: center; width: 26px; height: 34px; color: var(--text-muted); list-style: none; cursor: pointer; border-radius: 5px; }
.discovery-reel-options summary::-webkit-details-marker { display: none; }
.discovery-reel-options summary svg { width: 16px; height: 16px; }
.discovery-reel-options summary:hover { color: var(--primary-light); background: var(--bg-hover); }
.discovery-reel-options > div { position: absolute; top: 100%; right: 0; width: 155px; z-index: 40; padding: 6px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 8px; box-shadow: var(--shadow-modal); }
.discovery-reel-options a { display: block; font-size: 12px; padding: 10px; border-radius: 5px; }
.discovery-reel-options a:hover { background: var(--bg-hover); }
.discovery-recommendations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.discovery-recommend-card { border: 1px solid var(--border-card); border-radius: 12px; padding: 19px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.recommend-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.discovery-avatar-stack { display: flex; padding-left: 3px; }
.discovery-avatar-stack img,.discovery-avatar-stack span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg-card); margin-left: -4px; }
.discovery-avatar-stack span { display: grid; place-items: center; background: var(--bg-subtle); color: var(--text-secondary); font-size: 9px; font-weight: 700; }
.recommend-top .btn { font-size: 10px; padding: 6px 12px; border-radius: 7px; }
.discovery-recommend-card h3 { font-size: 13px; margin-bottom: 5px; color: var(--text-main); }
.discovery-recommend-card p { color: var(--text-secondary); font-size: 11px; line-height: 1.6; margin-bottom: 12px; }
.recommend-link { display: inline-flex; gap: 9px; border-top: 1px solid var(--border-light); padding-top: 10px; color: var(--primary-light); font-size: 11px; font-weight: 600; }
.explore-sort { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 10px; }
.explore-sort select { max-width: 125px; font: inherit; font-weight: 600; background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-light); border-radius: 5px; padding: 5px 7px; }
.discovery-posts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; align-items: stretch; }
.discovery-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.discovery-directory-card { padding: 22px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--bg-card); }
.discovery-directory-card .discovery-person img { width: 44px; height: 44px; }
.discovery-directory-card .discovery-person strong { font-size: 14px; }
.discovery-directory-card p { margin: 16px 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.explore-search-state,.explore-empty { font-size: 13px; color: var(--text-secondary); padding: 16px 0; }
.explore-page .discovery-post { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; overflow: visible; border-radius: 16px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.discovery-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; }
.discovery-card-header .post-header { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0; padding: 0; }
.discovery-card-header .author-avatar { width: 33px; height: 33px; border-radius: 50%; }
.discovery-card-header .author-details { min-width: 0; gap: 3px !important; }
.explore-page .discovery-card-header .author-name { max-width: 140px; font-size: 12px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discovery-card-header .post-time { color: var(--text-muted); font-size: 10px; }
.discovery-card-header .post-options-btn { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 8px; color: var(--text-secondary); }
.discovery-card-header .post-options-btn:hover { background: var(--bg-hover); }
.discovery-card-header .post-options-btn svg { width: 18px; height: 18px; }
.explore-page .discovery-post-open { display: block; position: relative; flex: none; aspect-ratio: 4/3; min-height: 0; max-height: none; margin: 0; overflow: hidden; background: var(--bg-subtle); border-radius: 0; }
.discovery-post-open img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none !important; object-fit: cover; transition: transform .25s ease; }
.discovery-post-open:hover img { transform: scale(1.025); }
.explore-page .discovery-post > .post-content { display: block; flex: none; padding: 15px; overflow: visible; }
.discovery-category { display: inline-block; margin-bottom: 9px; font-size: 10px; font-weight: 650; color: var(--primary-light); }
.discovery-category:hover { text-decoration: underline; }
.explore-page .discovery-post .post-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.8em; margin: 0 0 7px; font-size: 15px; line-height: 1.4; color: var(--text-main); }
.discovery-post .post-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 3.2em; margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.discovery-post-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: auto 15px 0; padding: 9px 0; border-top: 1px solid var(--border-light); }
.discovery-post-actions { display: flex; align-items: center; gap: 12px; }
.discovery-post-footer .post-action-btn { min-height: 36px; gap: 6px; padding: 5px 7px; color: var(--text-secondary); font-size: 11px; }
.discovery-post-footer .action-icon svg { width: 19px; height: 19px; }
.discovery-post .post-dropdown-menu { top: calc(100% + 4px); min-width: 170px; }
@media(max-width:1150px) {
 .explore-page .explore-main { padding: 24px; }
 .discovery-reels { gap: 10px; }
 .discovery-posts { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .discovery-reel > footer { padding: 8px; }
 .discovery-person strong { font-size: 10px; }
}
@media(max-width:900px) {
 .explore-page .explore-main { padding: 20px 20px 90px; }
 .explore-tabs { overflow-x: auto; gap: 10px; }
 .explore-tabs button { padding-inline: 14px; }
 .discovery-posts { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:650px) {
 .explore-page .explore-main { padding: 16px 12px 90px; }
 .explore-demo-note { font-size: 10px; margin-bottom: 18px; }
 .explore-intro h1 { font-size: 26px; }
 .explore-intro > p:last-child { font-size: 12px; }
 .explore-tabs { gap: 2px; margin-bottom: 20px; }
 .explore-tabs button { font-size: 11px; padding-inline: 12px; }
 .explore-section-heading h2 { font-size: 14px; }
 .discovery-reels { grid-template-columns: repeat(4,minmax(165px,1fr)); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
 .discovery-reel { scroll-snap-align: start; }
 .discovery-recommendations,.discovery-directory { grid-template-columns: 1fr; gap: 12px; }
 .discovery-recommend-card { padding: 16px; }
 .discovery-posts { grid-template-columns: 1fr; gap: 16px; }
 .discovery-post-footer .post-action-btn { min-height: 44px; }
 .explore-sort { gap: 4px; }
}
@media(max-width:370px) {
 .discovery-posts { grid-template-columns: 1fr; }
}

/* Editorial discovery overview. */
.explore-page .explore-section { margin-bottom:32px; }
.explore-page .explore-section-heading { align-items:center;margin-bottom:14px; }
.explore-feature-grid { display:grid;grid-template-columns:1.9fr 1fr;grid-template-rows:220px 220px;gap:16px; }
.explore-feature { position:relative;display:block;min-width:0;overflow:hidden;border-radius:14px;background:var(--bg-subtle);color:#fff; }
.explore-feature-lead { grid-row:span 2; }
.explore-feature>img { width:100%;height:100%;object-fit:cover;transition:transform .35s; }
.explore-feature-lead>img { object-position:50% 65%; }
.explore-feature::after { content:'';position:absolute;inset:25% 0 0;background:linear-gradient(transparent,rgba(0,15,10,.8));pointer-events:none; }
.explore-feature:hover>img { transform:scale(1.025); }
.explore-feature-label { position:absolute;top:24px;left:26px;z-index:1;padding:6px 11px;border-radius:999px;background:#e7f3eb;color:#154c38;text-transform:uppercase;font-size:10px;font-weight:700; }
.explore-feature-caption { position:absolute;bottom:20px;left:22px;right:22px;z-index:1; }
.explore-feature-caption h2 { color:#fff;font-size:32px;line-height:1.15;letter-spacing:-1px;margin:0 0 12px; }
.explore-feature-caption h3 { color:#fff;font-size:21px;margin:0 0 4px; }
.explore-feature-caption p { color:#ffffffdc;font-size:13px;line-height:1.5;margin:0; }
.explore-feature-caption small { display:flex;align-items:center;gap:9px;margin-top:22px;color:#ffffffdc;font-size:11px; }
.explore-mini-avatar { display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#704864;color:white;font-size:10px; }
.explore-interest-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px; }
.explore-interest { display:flex;align-items:center;position:relative;gap:14px;padding:11px;min-width:0;min-height:132px;border:1px solid var(--border-light);border-radius:13px;background:var(--bg-card); }
.explore-interest>img { width:32%;height:110px;object-fit:cover;border-radius:8px; }
.explore-interest>span { min-width:0; }
.explore-interest strong { display:block;font-size:13px;color:var(--text-main);margin-bottom:9px; }
.explore-interest small { display:block;font-size:11px;line-height:1.5;color:var(--text-muted); }
.explore-interest>b { position:absolute;right:15px;bottom:15px;color:var(--primary);font-size:20px;font-weight:400; }
.explore-page #explore-results[data-active-tab="all"] .discovery-post:nth-child(n+4) { display:none; }
#explore-results[data-active-tab="all"] .explore-sort { display:none; }
#explore-results:not([data-active-tab="all"]) .explore-view-posts { display:none; }
.explore-page .discovery-post { box-shadow:none;border:1px solid var(--border-light);border-radius:14px; }
.explore-page .discovery-post-open { aspect-ratio:1/1; }
.explore-page .discovery-post>.post-content { padding:18px 16px 28px; }
.explore-page .discovery-post .post-title { min-height:2.8em;font-size:16px; }
.explore-page .discovery-category { text-transform:uppercase;font-size:9px; }
.explore-page .discovery-post-footer { padding:10px 0; }
.explore-page .discovery-reel { border:0;border-radius:14px;overflow:hidden;background:transparent;box-shadow:none; }
.explore-page .discovery-reel-media { aspect-ratio: .61;border-radius:14px; }
.explore-page .discovery-reel>footer { display:none; }
.explore-page .discovery-play { background:var(--primary);border:0; }
.explore-page .discovery-reel-media h3 { bottom:58px;font-size:13px; }
.explore-reel-owner { position:absolute;bottom:18px;left:14px;z-index:1;font-size:11px;color:#ffffffd9; }
.explore-page .explore-circle { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 12px;align-items:center;padding:24px; }
.explore-circle .discovery-person { gap:14px; }
.explore-circle-avatar { display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#76538b;color:#fff;font-size:12px;font-weight:700; }
.explore-circle:nth-child(2) .explore-circle-avatar { background:#206856; }
.explore-circle .discovery-person strong { font-size:15px; }
.explore-circle .discovery-person small { margin-top:8px;font-size:11px; }
.explore-circle>.btn { min-width:90px; }
.explore-circle>p { grid-column:1/-1;margin:0;font-size:11px; }
.explore-more-card { display:flex;align-items:center;gap:22px;padding:14px;border:1px solid var(--border-light);border-radius:14px;background:var(--bg-card); }
.explore-more-card>img { width:110px;height:86px;border-radius:9px;object-fit:cover; }
.explore-more-card strong { font-size:17px;color:var(--text-main); }
.explore-more-card p { margin-top:8px;font-size:13px;color:var(--text-muted); }
.explore-more-card>b { margin-left:auto;margin-right:20px;white-space:nowrap;font-size:12px;color:var(--primary); }
@media(min-width:1100px) { .explore-page .discovery-posts { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1150px) { .explore-feature-grid { grid-template-rows:190px 190px; }.explore-feature-caption h2 { font-size:27px; }.explore-interest-grid { gap:12px; }.explore-interest { gap:9px; }.explore-interest strong { font-size:12px; } }
@media(max-width:768px) {
 .explore-page .explore-section { margin-bottom:24px; }
 .explore-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:310px 175px;gap:12px; }
 .explore-feature-lead { grid-column:1/-1;grid-row:auto; }
 .explore-feature-caption { left:16px;right:16px;bottom:16px; }
 .explore-feature-caption h2 { font-size:27px; }.explore-feature-caption h3 { font-size:17px; }.explore-feature-caption p { font-size:11px; }
 .explore-feature-caption small { margin-top:14px;font-size:10px; }
 .explore-feature-label { top:16px;left:16px; }
 .explore-interest-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
 .explore-interest { min-height:110px;gap:10px;padding:9px; }.explore-interest>img { height:90px;width:34%; }.explore-interest strong { font-size:12px; }.explore-interest small { font-size:10px; }
 .explore-page .discovery-recommendations { grid-template-columns:1fr;gap:16px; }
 .explore-page .explore-circle { padding:20px 16px; }
 .explore-page .explore-circle .discovery-person strong { font-size:13px; }
 .explore-more-card { gap:12px;flex-wrap:wrap; }.explore-more-card>img { width:72px;height:76px; }.explore-more-card>span { flex:1; }.explore-more-card strong { font-size:14px; }.explore-more-card p { font-size:11px; }.explore-more-card>b { margin:0 0 0 auto; }
}
@media(prefers-reduced-motion:reduce) { .explore-feature>img { transition:none; }.explore-feature:hover>img { transform:none; } }

/* Compact category cards with a centered navigation affordance. */
.explore-page .explore-interest-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.explore-page .explore-interest { min-height:120px;padding:10px;gap:14px; }
.explore-page .explore-interest>img { width:76px;height:98px;flex-shrink:0; }
.explore-page .explore-interest>span { flex:1; }
.explore-page .explore-interest strong { margin:0 0 4px;line-height:1.3; }
.explore-page .explore-interest small { line-height:1.35; }
.explore-page .explore-interest>b { position:static;display:grid;place-items:center;align-self:center;flex:0 0 22px;font-size:20px; }
@media(max-width:1100px) { .explore-page .explore-interest-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) {
 .explore-page .explore-interest { min-height:100px;padding:8px;gap:8px; }
 .explore-page .explore-interest>img { width:42px;height:82px; }
 .explore-page .explore-interest strong { font-size:11px; }
 .explore-page .explore-interest>b { flex-basis:14px;font-size:17px; }
}

/* Shorter discovery posts retain a clear clickable surface. */
.explore-page .discovery-post { cursor:pointer; }
.explore-page .discovery-post-open { aspect-ratio:4/3; }
.explore-page .discovery-card-header { padding:11px 15px; }
.explore-page .discovery-post>.post-content { padding:14px 16px 16px; }
.explore-page .discovery-post .post-title { min-height:0;margin-bottom:8px;font-size:15px;line-height:1.35; }
.explore-page .discovery-post .post-description { min-height:0;line-height:1.5; }
.explore-page .discovery-post-footer { padding:7px 0; }
.explore-page .discovery-post-open:focus-visible,.explore-page .discovery-post .post-title:focus-visible { outline:2px solid var(--primary-light);outline-offset:-3px; }

/* Keep quick-watch captions close to their authors. */
.explore-page .discovery-reel-media h3 { bottom:36px;margin:0; }

/* Clickable post media must keep its rectangular image shape. */
.explore-page .discovery-post .discovery-post-open[role="button"] { border-radius:0!important; }
.explore-page .discovery-post .post-title[role="button"] { border-radius:0!important; }

/* Visual discovery cards pair a compact cover with a clear action. */
.explore-page .explore-spotlight { display:grid;grid-template-columns:34% minmax(0,1fr);padding:0;overflow:hidden;min-height:240px; }
.explore-spotlight-art { display:block;position:relative;min-width:0;background:var(--bg-subtle);overflow:hidden; }
.explore-spotlight-art>img { display:block;width:100%;height:100%;object-fit:cover; }
.explore-spotlight-art::after { content:'';position:absolute;inset:0;background:linear-gradient(#001a1233,transparent 50%);pointer-events:none; }
.explore-spotlight-type { position:absolute;left:12px;top:14px;right:10px;z-index:1;color:white;font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;line-height:1.5; }
.explore-spotlight-body { display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:26px 22px 20px;min-width:0; }
.explore-spotlight .discovery-person { gap:10px; }
.explore-portrait-avatar,.explore-community-avatar { display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;background:#76538b;border:3px solid var(--bg-card);border-radius:50%;color:white;font-size:12px;font-weight:700; }
.explore-community-avatar { border-radius:12px;background:#206856; }
.explore-spotlight .discovery-person strong { font-size:15px; }
.explore-spotlight .discovery-person small { font-size:11px;margin-top:4px; }
.explore-spotlight-body>p { font-size:12px;line-height:1.5;margin:0;color:var(--text-secondary); }
.explore-interest-tags { display:flex;flex-wrap:wrap;gap:6px; }
.explore-interest-tags>span { padding:4px 8px;border-radius:6px;background:var(--bg-subtle);color:var(--text-secondary);font-size:10px;line-height:1.3; }
.explore-spotlight-body>.btn { margin-top:auto;min-height:34px;padding:8px 22px;font-size:12px; }
.explore-page .explore-spotlight>.suggestion-dismiss { top:7px;right:7px; }
@media(max-width:1150px) { .explore-page .discovery-recommendations { grid-template-columns:1fr; }.explore-page .explore-spotlight { min-height:215px;grid-template-columns:30% minmax(0,1fr); } }
@media(max-width:650px) { .explore-page .explore-spotlight { grid-template-columns:29% minmax(0,1fr);min-height:230px; }.explore-spotlight-body { padding:24px 14px 16px;gap:10px; }.explore-spotlight .discovery-person strong { font-size:13px; }.explore-portrait-avatar,.explore-community-avatar { width:38px;height:38px;flex-basis:38px; }.explore-spotlight-type { left:9px;font-size:9px; } }

/* Suggested people use compact profile cards rather than feature panels. */
.explore-page .explore-suggested-people { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px; }
.explore-page .explore-person-suggestion { display:flex;flex-direction:column;align-items:center;min-width:0;padding:26px 18px 18px;text-align:center; }
.explore-person-profile { display:flex;flex-direction:column;align-items:center;gap:12px;max-width:100%; }
.explore-person-profile>img { display:block;width:76px;height:76px;object-fit:cover;border-radius:50%; }
.explore-person-profile>strong { font-size:14px;line-height:1.4;color:var(--text-main); }
.explore-page .explore-person-suggestion>p { margin:6px 0 16px;min-height:34px;font-size:11px;line-height:17px;color:var(--text-secondary); }
.explore-person-suggestion>.btn { width:100%;margin-top:auto;min-height:34px;font-size:12px; }
@media(max-width:1100px) { .explore-page .explore-suggested-people { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .explore-page .explore-suggested-people { grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:168px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;gap:12px; }.explore-suggested-people::-webkit-scrollbar { display:none; }.explore-page .explore-person-suggestion { scroll-snap-align:start;padding:24px 14px 16px; }.explore-person-profile>strong { font-size:13px; } }

/* Community recommendations have their own image-led card row. */
.explore-community-suggestions { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.explore-page .explore-community-suggestion { display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden; }
.explore-community-cover { display:block;position:relative;height:150px;overflow:hidden; }
.explore-community-cover>img { display:block;width:100%;height:100%;object-fit:cover; }
.explore-community-cover::after { content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#00160b77);pointer-events:none; }
.explore-community-cover>span { position:absolute;bottom:12px;left:14px;z-index:1;padding:4px 9px;border-radius:6px;background:var(--bg-card);color:var(--primary-light);font-size:10px;font-weight:600; }
.explore-community-info { display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:16px; }
.explore-community-info h3 { font-size:15px;line-height:1.4;margin:0;color:var(--text-main); }
.explore-page .explore-community-info p { margin:6px 0 16px;min-height:36px;font-size:12px;line-height:18px;color:var(--text-secondary); }
.explore-community-info>.btn { width:100%;margin-top:auto;min-height:34px;font-size:12px; }
.explore-community-suggestion>.suggestion-dismiss { background:var(--bg-card); }
@media(max-width:650px) { .explore-community-suggestions { grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:230px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;gap:12px; }.explore-community-suggestions::-webkit-scrollbar { display:none; }.explore-community-suggestion { scroll-snap-align:start; }.explore-community-cover { height:125px; }.explore-community-info h3 { font-size:14px; } }

@media(min-width:1101px) { .explore-community-suggestions { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(min-width:651px) and (max-width:1100px) { .explore-community-suggestions { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* People tab: six profile cards in two desktop rows. */
.explore-page #explorePeople { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
@media(max-width:900px) { .explore-page #explorePeople { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:370px) { .explore-page #explorePeople { grid-template-columns:1fr; } }

/* Communities tab shares the image-led recommendation card design. */
.explore-page #exploreCommunities { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
@media(max-width:900px) { .explore-page #exploreCommunities { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:550px) { .explore-page #exploreCommunities { grid-template-columns:1fr; } }

@media(min-width:1101px) { .explore-page #exploreCommunities { grid-template-columns:repeat(4,minmax(0,1fr)); } }

@media(max-width:768px) { .explore-page .explore-intro>.page-subtitle-text { display:none; } }
