/* Iris Search / Explore */
.explore-pane{padding:0!important;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.explore-screen{min-height:calc(100dvh - 128px);background:#fff;color:#1f1d22}
.explore-content-shell{position:relative;border:0!important;border-radius:0!important;background:var(--iris-bg,#fff);box-shadow:none!important}
.explore-head{position:relative;z-index:8;padding:12px 16px;background:var(--iris-bg,#fff);border-radius:0}
/* Explore begins at the safe area, with no install/menu header or page frame. */
.shell:has(#app:not([hidden]) #pane.explore-pane){width:min(100%,760px);padding-inline:0;}
.shell:has(#app:not([hidden]) #pane.explore-pane)>.top{display:none!important}
.explore-search{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 14px;border-radius:999px;background:#f2f1f4;color:#77717d}
.explore-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.explore-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#1f1d22;font:inherit;font-size:15px}
.explore-search input::placeholder{color:#96919a}
.explore-globe-wrap{position:relative;width:100%;height:clamp(360px,105vw,520px);margin:0 auto 2px;overflow:visible;background:transparent;isolation:isolate}
.explore-globe-wrap[hidden]{display:none!important}
.explore-globe-canvas{display:block;width:100%;height:100%;border:0;outline:0;background:transparent;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
.explore-globe-canvas:active{cursor:grabbing}
.explore-globe-canvas:focus-visible{outline:1px solid #7764e7;outline-offset:-8px;border-radius:50%}
.explore-people{padding:18px 16px 6px;border-bottom:1px solid #efedf1}
.explore-people h2,.explore-section h2{margin:0 0 12px;font-size:16px;letter-spacing:-.3px}
.explore-people-list{display:grid;gap:2px}
.explore-person{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:8px 0;border:0;background:#fff;color:inherit;text-align:left}
.explore-person .inbox-avatar{width:48px;height:48px;min-width:48px;flex-basis:48px}
.explore-person-copy{display:grid;min-width:0;gap:2px}
.explore-person-copy strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.explore-person-copy small{color:#87818d;font-size:12px}
.explore-person-copy em{margin-top:2px;color:#7052e7;font-size:10px;font-style:normal;font-weight:650}
.explore-section{padding:18px 0 0}
.explore-section>h2{padding:0 16px}
.explore-grid{--masonry-row:4px;--masonry-gap:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:var(--masonry-row);gap:var(--masonry-gap);grid-auto-flow:dense;align-items:start;padding:0 10px}
.explore-grid>*{grid-column:span 1;align-self:start;break-inside:avoid}
.explore-image-tile{display:block;width:100%;border:0;border-radius:16px;padding:0;overflow:hidden;background:#f3f2f4;box-shadow:0 1px 0 #00000008}
.explore-image-tile img,.explore-image-tile video{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:inherit}
.explore-card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid #e6e3e9;border-radius:18px;background:#fff;color:#211e25;overflow:hidden;box-shadow:0 1px 0 #00000006}
.explore-text-card-post{grid-column:span 1}
.explore-card-head{display:flex;align-items:center;padding:9px 9px 6px}
.explore-card-author{display:flex;align-items:center;gap:9px;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left}
.explore-card-author .inbox-avatar{width:30px;height:30px;min-width:30px;flex-basis:30px}
.explore-card-author-copy{display:grid;grid-template-columns:auto auto;align-items:center;gap:0 5px;min-width:0}
.explore-card-author-copy strong{overflow:hidden;font-size:12px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.explore-card-author-copy small{grid-column:1/-1;color:#8a8490;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.explore-verified{width:15px!important;height:15px!important}
.explore-card-caption{margin:0;padding:7px 10px 11px;font-size:14px;line-height:1.38;white-space:pre-wrap;overflow-wrap:anywhere}
.explore-card .explore-reminder{position:relative;z-index:2;margin:0 10px 10px;padding:9px 10px;border-radius:12px}
.explore-card .explore-reminder .post-reminder-button{padding:7px 9px;font-size:11px}
.explore-card-open{position:absolute;inset:48px 0 42px;border:0;background:transparent}
.explore-card-actions{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:2px;min-height:38px;padding:2px 7px 4px;border-top:1px solid #efedf1}
.explore-card-action{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;min-height:36px;padding:0 5px;border:0;background:transparent;color:#77717d;font:inherit;font-size:11px}
.explore-card-action svg{width:18px;height:18px;flex:none}
.explore-card-action.active{color:#7052e7}
.explore-save{justify-content:center;width:36px;padding:0}
.explore-status{margin:0;padding:30px 16px 100px;text-align:center;color:#8d8791;font-size:13px}
.top-notification-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#37333b}
.top-notification-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-search svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
@media(max-width:430px){.explore-head{padding-inline:12px}.explore-people{padding-inline:12px}.explore-section>h2{padding-inline:12px}.explore-grid{padding-inline:8px}}
@media(min-width:700px){.explore-screen{max-width:760px;margin:0 auto}.explore-text-card-post .explore-card-caption{font-size:18px}}

.explore-card-location{position:relative;z-index:2;display:flex;align-items:center;gap:7px;max-width:100%;min-height:24px;padding:2px 10px 9px;color:color-mix(in srgb,var(--iris-text,#211e25) 72%,var(--iris-muted,#817a87));font-size:13px;font-weight:750;line-height:1.25;letter-spacing:-.01em;white-space:nowrap;text-decoration:none}
.explore-card-location .post-location-icon{flex-basis:18px;width:18px;height:21px}
.explore-card-location .post-location-icon svg{width:18px;height:21px}
.explore-card-location .post-location-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.explore-card-location[href]{cursor:pointer}
.explore-card-location[href]:hover,.explore-card-location[href]:focus-visible{color:var(--iris-accent,#7052e7);text-decoration:none}

/* Gapless Explore masonry: each post stays in one column so dense packing fills vertical holes. */
@media(max-width:699px){
  .explore-video-tile img{aspect-ratio:auto!important}
}
@media(min-width:700px){
  .explore-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-inline:12px}
}

/* Interactive post-location globe */
.explore-globe-tooltip{position:absolute;left:50%;top:14px;z-index:2;display:grid;gap:2px;min-width:92px;max-width:72%;padding:7px 11px;transform:translateX(-50%);border:1px solid #ffffff24;border-radius:999px;background:#080b10d9;color:#fff;text-align:center;box-shadow:0 8px 28px #0006;backdrop-filter:blur(12px);pointer-events:none}
.explore-globe-tooltip strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:750}
.explore-globe-tooltip small{color:#b8ffc9;font-size:10px}
.explore-globe-tooltip[hidden]{display:none}
.explore-globe-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
